Vector2PunchMotionAdapter
Compute the Vector2 sample for a punch tween from its starting value and strength.
public readonly struct Vector2PunchMotionAdapter : IMotionAdapter<Vector2, PunchOptions>, IProgressOnlyAdapter, IVibrationAdapterVibrationMotion.cs · L180Members
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 PunchOptions options, in MotionEvaluationContext context)Parameters and return value
startValueref Vector2Starting value.endValueref Vector2End value.optionsref PunchOptionsOptions passed to this value adapter.contextin MotionEvaluationContextEased Progress and elapsed Time in seconds.- Returns
Vector2
MeatMotion