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