Click or drag to resize

InterpolateNewBezier Method (InterpolateFunction, Transform, Single)

Returns sequence generator from the first node to the last node over duration time using the points in-between the first and last node as control points of a bezier curve used to generate the interpolated points in the sequence. If there are no control points (ie. only two nodes, first and last) then this behaves exactly the same as NewEase(). In other words a zero-degree bezier spline curve is just the easing method. The sequence is generated as it is accessed using the Time.deltaTime to calculate the portion of duration that has elapsed.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static IEnumerable<Vector3> NewBezier(
	InterpolateFunction ease,
	Transform[] nodes,
	float duration
)

Parameters

ease
Type: DustProductions.CoreInterpolateFunction
The ease function to use
nodes
Type: Transform
The positions that make up the curve
duration
Type: SystemSingle
The length of time for the curve to take

Return Value

Type: IEnumerableVector3
The position on the curve at the time
See Also