Mesh:draw

Draws the contents of the Mesh.

Mesh:draw(x, y, z, scale, angle, ax, ay, az, instances)

Arguments

NameTypeDefaultDescription
xnumber0The x coordinate to draw the Mesh at.
ynumber0The y coordinate to draw the Mesh at.
znumber0The z coordinate to draw the Mesh at.
scalenumber1The scale to draw the Mesh at.
anglenumber0The angle to rotate the Mesh around its axis of rotation.
axnumber0The x component of the axis of rotation.
aynumber1The y component of the axis of rotation.
aznumber0The z component of the axis of rotation.
instancesnumber1The number of copies of the Mesh to draw.

Returns

Nothing


Mesh:draw(transform, instances)

Arguments

NameTypeDefaultDescription
transformmat4The transform to apply before drawing.
instancesnumber1The number of copies of the Mesh to draw.

Returns

Nothing

See also