Class ZoomCamera
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
Common base class for cameras that support zooming.
public abstract class ZoomCamera : MatrixCamera, IInputReceiver, IPositionable
- Inheritance
-
objectZoomCamera
- Implements
- Derived
- Inherited Members
Properties
MaxRadius
The maximum radius allowed.
public double MaxRadius { get; set; }
Property Value
Remarks
Must be a positive real number.
MinRadius
The minimum radius allowed.
public double MinRadius { get; set; }
Property Value
Remarks
Must be a positive real number.
Radius
The distance between the camera and the center of the target.
public double Radius { get; set; }
Property Value
Remarks
Must be a positive real number.
ZoomBase
Base factor used for exponential zoom scaling.
[FloatRange(0, 2)]
public double ZoomBase { get; set; }
Property Value
ZoomSensitivity
Controls the sensitivity of zoom operations.
[FloatRange(0, 10)]
public double ZoomSensitivity { get; set; }
Property Value
Methods
Navigate(DoubleVector3, DoubleVector3)
Called when the user changes the view perspective.
public override void Navigate(DoubleVector3 translation = default, DoubleVector3 rotation = default)
Parameters
translationDoubleVector3Movement in screen units. X = pan right, Y = pan up, Z = move forward
rotationDoubleVector3Rotation in degrees. X = yaw right, Y = pitch up, Z = roll clockwise