Class TransitionCameraOptions
- Namespace
- OmegaEngine.Graphics.Cameras
- Assembly
- OmegaEngine.dll
Options controlling a camera transition.
public record TransitionCameraOptions : AnimationOptions, IEquatable<AnimationOptions>, IEquatable<TransitionCameraOptions>
- Inheritance
-
objectTransitionCameraOptions
- 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
DurationTimeSpanThe duration of the complete transition.
EasingFunctionEasingFunctionThe kind of easing function to use.
EaseInboolWhether the transition should be eased in. I.e., start slowly and then speed up.
EaseOutboolWhether the transition should be eased out. I.e., slow down at the end.
RotationBiasdoubleThe 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; }