natiny_physics_shutdown
void natiny_physics_shutdown(void);
Destroys the world and every body in it.
Example
natiny_physics_shutdown();
Notes
- Every
NatinyBodybecomes invalid for physics calls. Manual physics shutdown does not destroy the corresponding entity nodes. - Do not reuse old body handles after initializing a new physics world.
- Safe to call when physics was never started, and safe to call twice.
natiny_backend_initandnatiny_backend_shutdownboth do this for you; calling it by hand is for a program that wants the world gone earlier.