Pass:line

Edit

Draws a line between points. Pass:mesh can also be used to draw line segments using the line DrawMode.




Arguments

NameTypeDescription
x1number The x coordinate of the first point.
y1number The y coordinate of the first point.
z1number The z coordinate of the first point.
x2number The x coordinate of the next point.
y2number The y coordinate of the next point.
z2number The z coordinate of the next point.
...* More points to add to the line.

Returns

Nothing

Arguments

NameTypeDescription
ttable A table of numbers or Vec3 objects (not a mix) representing points of the line.

Returns

Nothing

Arguments

NameTypeDescription
v1Vec3 A vector containing the position of the first point of the line.
v2Vec3 A vector containing the position of the next point on the line.
...* More points to add to the line.

Returns

Nothing

Notes

There is currently no way to increase line thickness.

See also