Click or drag to resize

PathGeneratorCreateSpline Method

Creates a spline path that curves around points in a list. Each source segment will have the same number of spline points.

Namespace:  DigitalRuby.ThunderAndLightning
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static bool CreateSpline(
	ICollection<Vector3> path,
	IList<Vector3> points,
	int numberOfSegments,
	bool closePath
)

Parameters

path
Type: System.Collections.GenericICollectionVector3
Receives the path points. Collection is not cleared.
points
Type: System.Collections.GenericIListVector3
Points for the spline to follow. Must contain at least 4 points.
numberOfSegments
Type: SystemInt32
Total number of line segments for the spline. The higher this number, the more points are sampled.
closePath
Type: SystemBoolean
True to loop back to the start, false otherwise

Return Value

Type: Boolean
True if success, false if points length is too small
See Also