public void DestroyBody(Body b) { if (b != null && b.GetWorld() != null && world.BodyCount > 0) { // avoid bodies getting removed twice by accident if (b.GetFixtureList() != null) { world.DestroyBody(b); } } }