natiny.physics.sphere
natiny.physics.sphere([radius]) -> body
Creates a dynamic sphere-shaped body at the world origin.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
radius |
number |
1 |
Radius in metres |
Returns
| Type | Description |
|---|---|
number |
Body handle, also usable as an entity handle; raises an error on failure |
Example
local ball = natiny.physics.sphere(0.5)