MeatMotion

Vector3MotionAdapter

Linearly interpolate the Vector3 endpoints at the eased Progress.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct Vector3MotionAdapter : IMotionAdapter<Vector3, NoOptions>, IFloatComponents
MotionAdapters.cs · L61

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