Table of Contents

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
object
CloneCamera
Implements
Derived
Inherited Members

Constructors

CloneCamera(Camera)

A camera that imitates the perspective of another Camera.

public CloneCamera(Camera parentCamera)

Parameters

parentCamera Camera

The parent camera to track

Properties

ParentCamera

The parent camera to track

public Camera ParentCamera { get; set; }

Property Value

Camera

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

translation DoubleVector3

Movement in screen units. X = pan right, Y = pan up, Z = move forward

rotation DoubleVector3

Rotation 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()