Example #1
0
 public void JumpToCamera(Camera camera)
 {
     cameras.Insert(freeCamEnabled ? 1 : 0, camera);
     ViewMatrix = camera.ViewMatrix;
     ProjectionMatrix = camera.ProjectionMatrix;
     transitionTotalTime = 0.0f;
     transitionCurrentTime = 1.0f;
 }
Example #2
0
 public void TransitionToCamera(Camera camera, float time)
 {
     #if DEBUG
     System.Diagnostics.Debug.Assert(time > 0.0f, "CameraQB::TransitionToCamera time must be > 0");
     #endif
     cameras.Insert(freeCamEnabled ? 1 : 0, camera);
     transitionTotalTime = time;
     transitionCurrentTime = 0.0f;
 }