//  Some basic options
 public MyCameraZoomProperties(MyCamera camera)
 {
     m_camera = camera;
     Update();
 }
Exemplo n.º 2
0
 protected override void UnloadData()
 {
     MyEntities.UnloadData();
     MainCamera = null;
     base.UnloadData();
 }
 public void ControlCamera(MyCamera currentCamera)
 {
     currentCamera.FieldOfViewDegrees = FOV;
     currentCamera.SetViewMatrix(MatrixD.Invert(WorldMatrix));
 }
Exemplo n.º 4
0
 public override void LoadData()
 {
     MainCamera = new MyCamera();
     MainCamera.FarPlaneDistance = MySession.Static.Settings.ViewDistance;
     MyEntities.LoadData();
 }
Exemplo n.º 5
0
 // ------------------------------------------------------------------------------------------------
 void IMyCameraController.ControlCamera(MyCamera currentCamera)
 {
     currentCamera.SetViewMatrix(GetViewMatrix());
 }