Class TransitionCamera
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
A camera that smoothly transitions between two camera states over time. Usually used via TransitionCameraTo(Camera, TransitionCameraOptions?).
Useful for cinematic camera movements or smooth transitions between different viewpoints.public class TransitionCamera : QuaternionCamera, IInputReceiver, IPositionable
- Inheritance
-
objectTransitionCamera
- Implements
- Inherited Members
Constructors
TransitionCamera(Camera, Camera, TransitionCameraOptions, Engine)
Creates a new transition camera.
public TransitionCamera(Camera start, Camera end, TransitionCameraOptions options, Engine engine)
Parameters
startCameraThe camera state at the beginning of the transition.
endCameraThe camera state at the end of the transition.
optionsTransitionCameraOptionsOptions controlling the transition.
engineEngineThe Engine used for update callbacks.
Properties
IsComplete
Is the transition finished?
[Browsable(false)]
public bool IsComplete { get; }
Property Value
Methods
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