Class ArcballCamera
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
A camera that can be rotated around a specific point in space.
public sealed class ArcballCamera : MatrixCamera, IInputReceiver, IPositionable
- Inheritance
-
ArcballCamera
- Implements
- Inherited Members
- Extension Methods
Constructors
ArcballCamera(double, double)
A camera that can be rotated around a specific point in space.
public ArcballCamera(double minRadius = 50, double maxRadius = 100)
Parameters
minRadiusdoubleThe minimum radius allowed. Also used as the initial radius.
maxRadiusdoubleThe maximum radius allowed.
Properties
HorizontalRotation
The clockwise horizontal rotation around the target in degrees.
public double HorizontalRotation { get; set; }
Property Value
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.
Roll
The clockwise roll along the view direction in degrees.
public double Roll { get; set; }
Property Value
VerticalRotation
The clockwise vertical rotation around the target in degrees.
public double VerticalRotation { get; set; }
Property Value
WorldUp
A unit vector describing the direction considered up in the world.
public DoubleVector3 WorldUp { get; set; }
Property Value
Methods
Navigate(DoubleVector3, DoubleVector3)
Called when the user changes the view perspective.
public override void Navigate(DoubleVector3 translation, DoubleVector3 rotation)
Parameters
translationDoubleVector3Movement in screen units. X = pan right, Y = pan upwards, Z = zoom into screen
rotationDoubleVector3Rotation in degrees. X = yaw clockwise, Y = pitch clockwise, Z = roll clockwise
UpdateView()
Update cached versions of View and related matrices.
protected override void UpdateView()