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