natiny.physics.apply_impulse
natiny.physics.apply_impulse(body, ix, iy, iz)
Adds a kick through the centre of mass, in world space.
Parameters
| Name | Type | Description |
|---|---|---|
body |
number |
Body handle |
ix |
number |
Impulse along X, kg*m/s |
iy |
number |
Impulse along Y, kg*m/s |
iz |
number |
Impulse along Z, kg*m/s |
Example
natiny.physics.apply_impulse(crate, 0, 0, -12)