|
int | GetSpanCount () |
|
int | GetSpanControlPointForMu (float mu, out float spanMu) |
|
int | GetClosestControlPointIndex (float mu) |
|
float | GetMuAtLenght (float length) |
|
float | RecalculateLenght (Matrix4x4 referenceFrame, float acc, int maxevals) |
|
void | SetName (int index, string name) |
|
string | GetName (int index) |
|
void | AddControlPoint (Vector3 position, Vector3 inTangentVector, Vector3 outTangentVector, Vector3 normal, float mass, float rotationalMass, float thickness, int filter, Color color, string name) |
|
void | InsertControlPoint (int index, Vector3 position, Vector3 inTangentVector, Vector3 outTangentVector, Vector3 normal, float mass, float rotationalMass, float thickness, int filter, Color color, string name) |
|
int | InsertControlPoint (float mu) |
|
void | Clear () |
|
void | RemoveControlPoint (int index) |
|
void | FlushEvents () |
|
|
bool | dirty = false |
|
const int | arcLenghtSamples = 20 |
|
List< float > | m_ArcLengthTable = new List<float>() |
|
float | m_TotalSplineLenght = 0.0f |
|
float Obi.ObiPath.GetMuAtLenght |
( |
float |
length | ) |
|
Returns the curve parameter (mu) at a certain length of the curve, using linear interpolation of the values cached in arcLengthTable.
float Obi.ObiPath.RecalculateLenght |
( |
Matrix4x4 |
referenceFrame, |
|
|
float |
acc, |
|
|
int |
maxevals |
|
) |
| |
Recalculates spline arc lenght in world space using Gauss-Lobatto adaptive integration.
- Parameters
-
acc | minimum accuray desired (eg 0.00001f) |
maxevals | maximum number of spline evaluations we want to allow per segment. |
The documentation for this class was generated from the following file:
- Assets/Obi/Scripts/RopeAndRod/DataStructures/Path/ObiPath.cs