FloatShakeMotionAdapter
Compute the Float sample for a shake tween from its starting value and strength.
public readonly struct FloatShakeMotionAdapter : IMotionAdapter<float, ShakeOptions>, IVibrationAdapterVibrationMotion.cs · L198Members
Evaluate
Read endpoints and options by reference and return the sampled value for the evaluation context.
public float Evaluate(ref float startValue, ref float endValue, ref ShakeOptions options, in MotionEvaluationContext context)Parameters and return value
startValueref floatStarting value.endValueref floatEnd value.optionsref ShakeOptionsOptions passed to this value adapter.contextin MotionEvaluationContextEased Progress and elapsed Time in seconds.- Returns
float
MeatMotion