natiny_physics_cylinder
C
NatinyBody natiny_physics_cylinder(float radius, float height);
Creates a dynamic cylinder-shaped body at the world origin, standing upright
along Y.
Parameters
| Name |
Type |
Description |
radius |
float |
Radius in metres |
height |
float |
Full height along Y, in metres |
Returns
| Type |
Description |
NatinyBody |
Body handle, also usable as a NatinyEntity; 0 on failure |
Example
C
NatinyBody barrel = natiny_physics_cylinder(0.4f, 1.2f);
natiny_entity_set_position(barrel, NATINY_SPACE_WORLD, 0.0f, 5.0f, 0.0f);