lovr.physics.newSphereShape

Creates a new SphereShape.

sphere = lovr.physics.newSphereShape(radius)

Arguments

NameTypeDefaultDescription
radiusnumber1The radius of the sphere, in meters.

Returns

NameTypeDescription
sphereSphereShapeThe new SphereShape.

Notes

A Shape can be attached to a Collider using Collider:addShape.

See also