public OrbitCameraController(Vector3 translation, Vector3 lookAt, Vector3 boundMin, Vector3 boundMax, float minOrbitDistance, float maxOrbitDistance)
 {
     this.camera           = null;
     this.translation      = targetTranslation = translation;
     this.lookAt           = targetLookAt = lookAt;
     this.boundMax         = boundMax;
     this.boundMin         = boundMin;
     this.minOrbitDistance = minOrbitDistance;
     this.maxOrbitDistance = maxOrbitDistance;
     computeStartingValues(translation - lookAt, out orbitDistance, out yaw, out pitch, out normalDirection, out rotatedUp, out rotatedLeft);
 }
Beispiel #2
0
 /// <summary>
 /// set the current camera for this controller. This can be set to null to disable the controller.
 /// </summary>
 /// <param name="camera">The camera to use.</param>
 public abstract void setCamera(CameraPositioner camera);
 /// <summary>
 /// set the current camera for this controller. This can be set to null to disable the controller.
 /// </summary>
 /// <param name="camera">The camera to use.</param>
 public override void setCamera(CameraPositioner camera)
 {
     this.camera = camera;
 }