MeatMotion

Vector3PunchMotionAdapter

Compute the Vector3 sample for a punch tween from its starting value and strength.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct Vector3PunchMotionAdapter : IMotionAdapter<Vector3, PunchOptions>, IProgressOnlyAdapter, IVibrationAdapter
VibrationMotion.cs · L189

Members

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 PunchOptions options, in MotionEvaluationContext context)
Parameters and return value
startValue
ref Vector3 Starting value.
endValue
ref Vector3 End value.
options
ref PunchOptions Options passed to this value adapter.
context
in MotionEvaluationContext Eased Progress and elapsed Time in seconds.
Returns
Vector3