Click or drag to resize

InterpolateNewCatmullRom Method (Vector3, Int32, Boolean)

A Vector3[] variation of the Transform[] NewCatmullRom() function. Same functionality but using Vector3s to define curve.

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(
	Vector3[] points,
	int slices,
	bool loop
)

Parameters

points
Type: Vector3
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

Return Value

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