natiny_physics_apply_impulse

C
void natiny_physics_apply_impulse(NatinyBody body, float ix, float iy, float iz);

Adds a kick through the centre of mass, in world space.

Parameters

Name Type Description
body NatinyBody Body handle
ix float Impulse along X, kg*m/s
iy float Impulse along Y, kg*m/s
iz float Impulse along Z, kg*m/s

Example

C
natiny_physics_apply_impulse(crate, 0.0f, 0.0f, -12.0f);