Method | Description | |
---|---|---|
GoSpline ( List |
||
GoSpline ( Vector3 nodes, bool useStraightLines = false ) : System.Collections | ||
GoSpline ( string pathAssetName, bool useStraightLines = false ) : System.Collections | ||
buildPath ( ) : void |
responsible for calculating total length, segmentStartLocations and segmentDistances
|
|
bytesToVector3List ( byte bytes ) : List |
helper to get a node list from an asset created with the visual editor
|
|
closePath ( ) : void |
closes the path adding a new node at the end that is equal to the start node if it isn't already equal
|
|
drawGizmos ( Vector3 path, float resolution = 50 ) : void |
helper for drawing gizmos in the editor
|
|
drawGizmos ( float resolution ) : void | ||
getLastNode ( ) : Vector3 |
gets the last node. used to setup relative tweens
|
|
getPointOnPath ( float t ) : Vector3 |
returns the point that corresponds to the given t where t >= 0 and t <= 1 making sure that the path is traversed at a constant speed.
|
|
reverseNodes ( ) : void |
reverses the order of the nodes
|
|
unreverseNodes ( ) : void |
unreverses the order of the nodes if they were reversed
|
Method | Description | |
---|---|---|
getPoint ( float t ) : Vector3 |
directly gets the point for the current spline type with no lookup table to adjust for constant speed
|
|
nodeListFromAsset ( string pathAssetName ) : List |
helper to get a node list from an asset created with the visual editor
|
public GoSpline ( List |
||
nodes | List |
|
useStraightLines | bool | |
return | System.Collections |
public GoSpline ( Vector3 nodes, bool useStraightLines = false ) : System.Collections | ||
nodes | Vector3 | |
useStraightLines | bool | |
return | System.Collections |
public GoSpline ( string pathAssetName, bool useStraightLines = false ) : System.Collections | ||
pathAssetName | string | |
useStraightLines | bool | |
return | System.Collections |
public static bytesToVector3List ( byte bytes ) : List |
||
bytes | byte | |
return | List |
public static drawGizmos ( Vector3 path, float resolution = 50 ) : void | ||
path | Vector3 | |
resolution | float | |
return | void |
public drawGizmos ( float resolution ) : void | ||
resolution | float | |
return | void |