Click or drag to resize

InterpolateNewCatmullRom Method (Transform, Int32, Boolean)

Returns sequence generator from the first node, through each control point, and to the last node. N points are generated between each node (slices) using Catmull-Rom.

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> NewCatmullRom(
	Transform[] nodes,
	int slices,
	bool loop
)

Parameters

nodes
Type: Transform
The positions on the curve
slices
Type: SystemInt32
The number of steps in the curve
loop
Type: SystemBoolean
Whether or not to loop this curve when complete

Return Value

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