Click or drag to resize

PathGenerator.CreateSpline 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.Generic.ICollection<Vector3>
Receives the path points. Collection is not cleared.
points
Type: System.Collections.Generic.IList<Vector3>
Points for the spline to follow. Must contain at least 4 points.
numberOfSegments
Type: System.Int32
Total number of line segments for the spline. The higher this number, the more points are sampled.
closePath
Type: System.Boolean
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