Method GetCurveUpVector
GetCurveUpVector(int, float)
Return the up vector for a t ratio on the curve. Contrary to EvaluateUpVector<T>(T, float), this method is trying to used cached values when possible for better performance when accessing to these values regularly.
Declaration
float3 GetCurveUpVector(int index, float t)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the curve for which the length needs to be retrieved. |
float | t | A value between 0 and 1 representing the ratio along the curve. |
Returns
Type | Description |
---|---|
float3 | Returns the up vector at the t ratio of the curve of index 'index'. |