lovr.graphics.plane

Draws a plane with a given position, size, and orientation.

lovr.graphics.plane(mode, x, y, z, width, height, angle, ax, ay, az)

Arguments

NameTypeDefaultDescription
modeDrawStyleHow to draw the plane.
xnumber0The x coordinate of the center of the plane.
ynumber0The y coordinate of the center of the plane.
znumber0The z coordinate of the center of the plane.
widthnumber1The width of the plane, in meters.
heightnumber1The height of the plane, in meters.
anglenumber0The number of radians to rotate around the rotation axis.
axnumber0The x component of the rotation axis.
aynumber1The y component of the rotation axis.
aznumber0The z component of the rotation axis.

Returns

Nothing


Draw a plane with a custom material.

lovr.graphics.plane(material, x, y, z, width, height, angle, ax, ay, az)

Arguments

NameTypeDefaultDescription
materialMaterialThe material to apply to the plane.
xnumber0The x coordinate of the center of the plane.
ynumber0The y coordinate of the center of the plane.
znumber0The z coordinate of the center of the plane.
widthnumber1The width of the plane, in meters.
heightnumber1The height of the plane, in meters.
anglenumber0The number of radians to rotate around the rotation axis.
axnumber0The x component of the rotation axis.
aynumber1The y component of the rotation axis.
aznumber0The z component of the rotation axis.

Returns

Nothing

See also