Table of Contents

Class CinematicCamera

Namespace
OmegaEngine.Graphics.Cameras
Assembly
OmegaEngine.dll

A camera that cinematically swings from one view to another.

public class CinematicCamera : QuaternionCamera, IInputReceiver, IPositionable
Inheritance
CinematicCamera
Implements
Inherited Members
Extension Methods

Remarks

"Cinematic" means that the movement starts slowly, speeds up dramatically and then slows down again before reaching the target.

Constructors

CinematicCamera(DoubleVector3, DoubleVector3, Quaternion, Quaternion, float, Engine)

Creates a new cinematic camera for the engine

public CinematicCamera(DoubleVector3 sourcePosition, DoubleVector3 targetPosition, Quaternion sourceQuat, Quaternion targetQuat, float duration, Engine engine)

Parameters

sourcePosition DoubleVector3

The initial camera position

targetPosition DoubleVector3

The target camera position

sourceQuat Quaternion

The initial view as a quaternion

targetQuat Quaternion

The target view as a quaternion

duration float

The complete transition time in seconds

engine Engine

The Engine containing this camera

Properties

Moving

Is this CinematicCamera currently moving?

public bool Moving { get; }

Property Value

bool

Methods

Navigate(DoubleVector3, DoubleVector3)

Called when the user changes the view perspective.

public override void Navigate(DoubleVector3 translation, DoubleVector3 rotation)

Parameters

translation DoubleVector3

Movement in screen units. X = pan right, Y = pan upwards, Z = zoom into screen

rotation DoubleVector3

Rotation in degrees. X = yaw clockwise, Y = pitch clockwise, Z = roll clockwise

UpdateView()

Update cached versions of View and related matrices

protected override void UpdateView()