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(texture, x, y, z, size, angle, ax, ay, az)

Arguments

NameTypeDefaultDescription
textureTextureThe Texture 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


lovr.graphics.sphere(transform)

Arguments

NameTypeDescription
transformTransformThe sphere's transform.

Returns

Nothing


lovr.graphics.sphere(texture, transform)

Arguments

NameTypeDescription
textureTextureThe Texture to apply to the sphere.
transformTransformThe sphere's transform.

Returns

Nothing

See also