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
)
Public Shared Function CreateSpline (
path As ICollection(Of Vector3),
points As IList(Of Vector3),
numberOfSegments As Integer,
closePath As Boolean
) As Boolean
public:
static bool CreateSpline(
ICollection<Vector3>^ path,
IList<Vector3>^ points,
int numberOfSegments,
bool closePath
)
static member CreateSpline :
path : ICollection<Vector3> *
points : IList<Vector3> *
numberOfSegments : int *
closePath : bool -> bool
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:
BooleanTrue if success, false if points length is too small
See Also