Example #1
0
        /// <summary>
        /// Initializes the transforms used by the game.
        /// </summary>
        private void InitializeTransform()
        {
            fViewCamera = new SimpleCameraController(this.Game, this.Manager, GraphicsDevice.Viewport);
            fViewCamera.Camera.Rotation = Quaternion.CreateFromYawPitchRoll(0, 0.0f, 0);
            fViewCamera.Camera.Position = new Vector3(0.0f, 0.0f, 0.0f);
            fViewCamera.Camera.Update();

            fShipCamera = new SimpleCameraController(this.Game, this.Manager, GraphicsDevice.Viewport);
            fShipCamera.Camera.Rotation = Quaternion.CreateFromYawPitchRoll(0, 0.0f, 0);
            fShipCamera.Camera.Position = new Vector3(0.0f, 0.0f, 0.0f);
            fShipCamera.Camera.Update();
            fShipCamera.ForwardDirection   = Vector3.Up;
            fShipCamera.UseInverseMovement = false;
            fShipCamera.Disable();// No input!
        }