world.DestroyBody(body)

Feb 23, 2011 at 9:38 AM

Hellow, i have a problems with destroying bodys in my game.

I create game's objects with body  and when user kill object, i must destroy it with body(world.DestroyBody(body)),

but sometimes i have such exception:  Debug.Assert(_bodyCount > 0);   in World.DestroyBody(Body).

how this can happen?