Class CloneCamera
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
A camera that imitates the perspective of another Camera.
public class CloneCamera : Camera, IInputReceiver, IPositionable
- Inheritance
-
objectCloneCamera
- Implements
- Derived
- Inherited Members
Constructors
CloneCamera(Camera)
A camera that imitates the perspective of another Camera.
public CloneCamera(Camera parentCamera)
Parameters
parentCameraCameraThe parent camera to track
Properties
ParentCamera
The parent camera to track
public Camera ParentCamera { get; set; }
Property Value
Methods
CacheSpecialMatrices()
Calculate cached versions of special matrices (e.g. ViewInverse calculated from View)
protected override void CacheSpecialMatrices()
GetView()
Gets the current view matrix.
protected virtual Matrix GetView()
Returns
- Matrix
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
UpdateProjection()
Update OmegaEngine.Graphics.Cameras.Camera.Projection if necessary
protected override void UpdateProjection()
UpdateView()
Update cached versions of View and related matrices if necessary
protected override void UpdateView()