Model:draw

Draw the Model.

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

Arguments

NameTypeDefaultDescription
xnumber0The x coordinate to draw the Model at.
ynumber0The y coordinate to draw the Model at.
znumber0The z coordinate to draw the Model at.
scalenumber1The scale to draw the Model at.
anglenumber0The angle to rotate the Model 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 Model to draw.

Returns

Nothing


Model:draw(transform, instances)

Arguments

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

Returns

Nothing

See also