natiny_physics_shutdown

C
void natiny_physics_shutdown(void);

Destroys the world and every body in it.

Example

C
natiny_physics_shutdown();

Notes

  • Every NatinyBody becomes 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_init and natiny_backend_shutdown both do this for you; calling it by hand is for a program that wants the world gone earlier.