natiny_physics_cube
NatinyBody natiny_physics_cube(float w, float h, float d);
Creates a dynamic box-shaped body at the world origin.
Parameters
| Name | Type | Description |
|---|---|---|
w |
float |
Width, the full size along X |
h |
float |
Height, the full size along Y |
d |
float |
Depth, the full size along Z |
Returns
| Type | Description |
|---|---|
NatinyBody |
Body handle, also usable as a NatinyEntity; 0 on failure |
Example
NatinyBody body = natiny_physics_cube(1.0f, 1.0f, 1.0f);