MeatMotion

QuaternionMotionAdapter

Quaternion.LerpUnclampedで開始回転と終了回転を補間します。

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

メンバー一覧へ

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

メンバー

Evaluate

開始値・終了値・オプションを参照で受け取り、contextに対応する補間値を返します。

public Quaternion Evaluate(ref Quaternion startValue, ref Quaternion endValue, ref NoOptions options, in MotionEvaluationContext context)
引数と戻り値
startValue
ref Quaternion 補間の開始値。
endValue
ref Quaternion 補間の終了値。
options
ref NoOptions この値型のアダプターに渡す設定。
context
in MotionEvaluationContext イーズ適用後のProgressと経過秒数Time。
戻り値
Quaternion