コード例 #1
0
ファイル: Dancer.cs プロジェクト: roydor/DancePartyXna
        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();
        }
コード例 #2
0
 public AnimatedModelInstance GetInstance()
 {
     AnimatedModelInstance newInstance = new AnimatedModelInstance(_originalModel);
     return newInstance;
 }