Curve:getTangent
EditReturns a direction vector for the Curve given a parameter t
from 0 to 1. 0 will return the direction at the first control point, 1 will return the direction at the last point, .5 will return the direction at the "middle" of the Curve, etc.
x, y, z = Curve:getTangent(t)
Arguments
Name | Type | Description |
t | number | Where on the Curve to compute the direction. |
Returns
Name | Type | Description |
x | number | The x position of the point. |
y | number | The y position of the point. |
z | number | The z position of the point. |
Notes
The direction vector returned by this function will have a length of one.