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