Curve:addPoint

Inserts a new control point into the Curve at the specified index.

Curve:addPoint(x, y, z, index)

Arguments

NameTypeDefaultDescription
xnumber The x coordinate of the control point.
ynumber The y coordinate of the control point.
znumber The z coordinate of the control point.
indexnumbernil 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.

See also