Table of Contents

Class TransitionCameraOptions

Namespace
OmegaEngine.Graphics.Cameras
Assembly
OmegaEngine.dll

Options controlling a camera transition.

public record TransitionCameraOptions : AnimationOptions, IEquatable<AnimationOptions>, IEquatable<TransitionCameraOptions>
Inheritance
object
TransitionCameraOptions
Implements
Inherited Members

Constructors

TransitionCameraOptions(TimeSpan, EasingFunction, bool, bool, double)

Options controlling a camera transition.

public TransitionCameraOptions(TimeSpan Duration, EasingFunction EasingFunction = EasingFunction.Sinusoidal, bool EaseIn = true, bool EaseOut = true, double RotationBias = 1)

Parameters

Duration TimeSpan

The duration of the complete transition.

EasingFunction EasingFunction

The kind of easing function to use.

EaseIn bool

Whether the transition should be eased in. I.e., start slowly and then speed up.

EaseOut bool

Whether the transition should be eased out. I.e., slow down at the end.

RotationBias double

The fraction of the transition time after which the rotation should be complete. Value is clamped between 0 and 1.

Properties

RotationBias

The fraction of the transition time after which the rotation should be complete. Value is clamped between 0 and 1.

public double RotationBias { get; init; }

Property Value

double