コード例 #1
0
 public AnimatableModel(ContentManager content)
 {
     model = content.Load<Model>("SpaceShip");
     boneTransforms = new Matrix[model.Bones.Count];
     model.CopyAbsoluteBoneTransformsTo(boneTransforms);
     World = new AnimatableMatrix();
 }
コード例 #2
0
 public AnimatableModel(ContentManager content)
 {
     model          = content.Load <Model>("SpaceShip");
     boneTransforms = new Matrix[model.Bones.Count];
     model.CopyAbsoluteBoneTransformsTo(boneTransforms);
     World = new AnimatableMatrix();
 }
コード例 #3
0
        public AnimatableCamera(Vector3 position, Vector3 target, float aspectRatio)
        {
            this.position    = position;
            this.target      = target;
            this.aspectRatio = aspectRatio;

            View       = new AnimatableMatrix();
            Projection = new AnimatableMatrix();

            ComputeView();
            ComputeProjection();
        }
コード例 #4
0
        public AnimatableCamera(Vector3 position, Vector3 target, float aspectRatio)
        {
            this.position = position;
            this.target = target;
            this.aspectRatio = aspectRatio;

            View = new AnimatableMatrix();
            Projection = new AnimatableMatrix();

            ComputeView();
            ComputeProjection();
        }
コード例 #5
0
 public AnimatedMatrixCommand(AnimatableMatrix matrix, Matrix newMatrix)
 {
     this.matrix = matrix;
     this.oldMatrix = matrix.Matrix;
     this.newMatrix = newMatrix;
 }