public Dancer(AnimatedModelInstance modelInstance) { _modelInstance = modelInstance; _animationPlayer = new AnimationPlayer(AnimationManager.Instance.GetAnimationData()); Position = Vector3.Zero; Forward = Vector3.UnitZ; Up = Vector3.UnitY; _worldMatrix = Matrix.CreateWorld(Position, Forward, Up); _dancerBehavior = new IdleDancerBehavior(this); _modelInstance.SkinTransforms = _animationPlayer.GetSkinTransforms(); }
public AnimatedModelInstance GetInstance() { AnimatedModelInstance newInstance = new AnimatedModelInstance(_originalModel); return newInstance; }