lovr.graphics.sphere

Draws a sphere.

lovr.graphics.sphere(x, y, z, size, angle, ax, ay, az)

Arguments

NameTypeDefaultDescription
xnumber0The x coordinate of the center of the sphere.
ynumber0The y coordinate of the center of the sphere.
znumber0The z coordinate of the center of the sphere.
sizenumber1The size of the sphere, in meters.
anglenumber0The rotation of the sphere around its rotation axis, in radians.
axnumber0The x coordinate of the sphere's axis of rotation.
aynumber1The y coordinate of the sphere's axis of rotation.
aznumber0The z coordinate of the sphere's axis of rotation.

Returns

Nothing


lovr.graphics.sphere(material, x, y, z, size, angle, ax, ay, az)

Arguments

NameTypeDefaultDescription
materialMaterialThe Material to apply to the sphere.
xnumber0The x coordinate of the center of the sphere.
ynumber0The y coordinate of the center of the sphere.
znumber0The z coordinate of the center of the sphere.
sizenumber1The size of the sphere, in meters.
anglenumber0The rotation of the sphere around its rotation axis, in radians.
axnumber0The x coordinate of the sphere's axis of rotation.
aynumber1The y coordinate of the sphere's axis of rotation.
aznumber0The z coordinate of the sphere's axis of rotation.

Returns

Nothing

See also