Click or drag to resize

InterpolateNewBezier Method (InterpolateFunction, Transform, Int32)

Instead of interpolating based on time, generate n interpolated points (slices) between the first and last node.

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,
	int slices
)

Parameters

ease
Type: DustProductions.CoreInterpolateFunction
The ease function to use
nodes
Type: Transform
The positions that make up the curve
slices
Type: SystemInt32
The number of steps in the curve

Return Value

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