Curve:evaluate
EditReturns a point on the Curve given a parameter t
from 0 to 1. 0 will return the first control point, 1 will return the last point, .5 will return a point in the "middle" of the Curve, etc.
x, y, z = Curve:evaluate(t)
Arguments
Name | Type | Description |
t | number | The parameter to evaluate the Curve at. |
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
An error will be thrown if t
is not between 0 and 1, or if the Curve has less than two points.