Example #1
0
 public AnimatableModel(ContentManager content)
 {
     model = content.Load<Model>("SpaceShip");
     boneTransforms = new Matrix[model.Bones.Count];
     model.CopyAbsoluteBoneTransformsTo(boneTransforms);
     World = new AnimatableMatrix();
 }
Example #2
0
 public AnimatableModel(ContentManager content)
 {
     model          = content.Load <Model>("SpaceShip");
     boneTransforms = new Matrix[model.Bones.Count];
     model.CopyAbsoluteBoneTransformsTo(boneTransforms);
     World = new AnimatableMatrix();
 }
Example #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();
        }
Example #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();
        }
 public AnimatedMatrixCommand(AnimatableMatrix matrix, Matrix newMatrix)
 {
     this.matrix = matrix;
     this.oldMatrix = matrix.Matrix;
     this.newMatrix = newMatrix;
 }