private void LoadCameras() { FreeCamera = new FreeCamera(mBox, AspectRatio); // Initialize the camera FixedCamera = new FixedCamera(mBox, AspectRatio); // This camera cannot be used until an // target entity is assigned to it. CurrentCamera = FreeCamera; }
public void SetupCamera(Camera inCam) { if (inCam is FreeCamera) { FreeInputCam = (inCam as FreeCamera); CurrentInputCam = FreeInputCam; } else if (inCam is FixedCamera) { FixedInputCam = (inCam as FixedCamera); CurrentInputCam = FixedInputCam; } }