Pass:line

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


Pass:line(x1, y1, z1, x2, y2, z2, ...)

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


Pass:line(t)

Arguments

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

Returns

Nothing


Pass:line(v1, v2, ...)

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