Curve:addPoint

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

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

Arguments

NameTypeDefaultDescription
xnumberThe x coordinate of the control point.
ynumberThe y coordinate of the control point.
znumberThe z coordinate of the control point.
indexnumbernilThe 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