MeatMotion

QuaternionMotionAdapter

Interpolate rotations with Quaternion.LerpUnclamped.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct QuaternionMotionAdapter : IMotionAdapter<Quaternion, NoOptions>, IProgressOnlyAdapter
MotionAdapters.cs · L73

Members

Evaluate

Read endpoints and options by reference and return the sampled value for the evaluation context.

public Quaternion Evaluate(ref Quaternion startValue, ref Quaternion endValue, ref NoOptions options, in MotionEvaluationContext context)
Parameters and return value
startValue
ref Quaternion Starting value.
endValue
ref Quaternion End value.
options
ref NoOptions Options passed to this value adapter.
context
in MotionEvaluationContext Eased Progress and elapsed Time in seconds.
Returns
Quaternion