public AnimatableModel(ContentManager content) { model = content.Load<Model>("SpaceShip"); boneTransforms = new Matrix[model.Bones.Count]; model.CopyAbsoluteBoneTransformsTo(boneTransforms); World = new AnimatableMatrix(); }
public AnimatableModel(ContentManager content) { model = content.Load <Model>("SpaceShip"); boneTransforms = new Matrix[model.Bones.Count]; model.CopyAbsoluteBoneTransformsTo(boneTransforms); World = new AnimatableMatrix(); }
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; }