lovr.physics.newSphereShape

Edit

Creates a new SphereShape.

sphere = lovr.physics.newSphereShape(radius)

Arguments

NameTypeDefaultDescription
radiusnumber1 The radius of the sphere, in meters.

Returns

NameTypeDescription
sphereSphereShape The new SphereShape.

Notes

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

See also