Destroy World

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

Hello,

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?

thanks.

Dec 3, 2010 at 11:22 PM

Hi

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);