MeatMotion

Vector3ShakeMotionAdapter

Shakeの初期値と強さから、指定時刻のVector3値を計算します。

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

メンバー一覧へ

public readonly struct Vector3ShakeMotionAdapter : IMotionAdapter<Vector3, ShakeOptions>, IVibrationAdapter
VibrationMotion.cs · L220

メンバー

Evaluate

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

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