lovr.physics.newSphereShape
EditCreates a new SphereShape.
sphere = lovr.physics.newSphereShape(radius)
Arguments
Name | Type | Default | Description |
radius | number | 1 | The radius of the sphere, in meters. |
Returns
Name | Type | Description |
sphere | SphereShape | The new SphereShape. |
Notes
A Shape can be attached to a Collider using Collider:addShape
.