Curve:addPoint
EditInserts a new control point into the Curve at the specified index.
Curve:addPoint(x, y, z, index)
Arguments
Name | Type | Default | Description |
x | number | The x coordinate of the control point. | |
y | number | The y coordinate of the control point. | |
z | number | The z coordinate of the control point. | |
index | number | nil | The index to insert the control point at. If nil, the control point is added to the end of the list of control points. |
Returns
Nothing
Notes
An error will be thrown if the index is less than one or more than the number of control points.