natiny_physics_sphere
NatinyBody natiny_physics_sphere(float radius);
Creates a dynamic sphere-shaped body at the world origin.
Parameters
| Name | Type | Description |
|---|---|---|
radius |
float |
Radius in metres |
Returns
| Type | Description |
|---|---|
NatinyBody |
Body handle, also usable as a NatinyEntity; 0 on failure |
Example
NatinyBody ball = natiny_physics_sphere(0.5f);