Class TrackCamera
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
A camera that can be rotated around a specific point in space.
public sealed class TrackCamera : MatrixCamera, IPositionable
- Inheritance
-
TrackCamera
- Implements
- Inherited Members
- Extension Methods
Constructors
TrackCamera(double, double)
A camera that can be rotated around a specific point in space.
public TrackCamera(double minRadius = 50, double maxRadius = 100)
Parameters
minRadiusdoubleThe minimum radius allowed. Also used as the initial radius.
maxRadiusdoubleThe maximum radius allowed.
Properties
HorizontalRotation
The horizontal rotation in degrees.
public double HorizontalRotation { get; set; }
Property Value
Remarks
Must be a real number.
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 focuses object.
public double Radius { get; set; }
Property Value
Remarks
Must be a positive real number.
VerticalRotation
The vertical rotation in degrees.
public double VerticalRotation { get; set; }
Property Value
Methods
PerspectiveChange(float, float, float, float)
Called when the user changes the view perspective.
public override void PerspectiveChange(float panX, float panY, float rotation, float zoom)
Parameters
panXfloatThe number of pixels panned along the X-axis divided by the number of pixels of the longest side of the viewport.
panYfloatThe number of pixels panned along the Y-axis divided by the number of pixels of the longest side of the viewport.
rotationfloatHorizontal rotation in degrees.
zoomfloatScaling factor; 1 for no change, must not be 0.
UpdateView()
Update cached versions of View and related matrices.
protected override void UpdateView()