This project has moved and is read-only. For the latest updates, please go here.

Destroy World

Topics: Developer Forum
Dec 3, 2010 at 9:17 AM


I'm facing a problem in my development, I need to destroy the current world to recreate one. Or actually I need to purify all bodies from the current world so that there are none left.

Is there a simple way of doing this?


Dec 3, 2010 at 11:22 PM


I was recently looking for a similar thing but I needed to remove all objects from my graphics engine too so I just iterate through all bodies and use world.RemoveBody(body);