Page 2 of 2
Re: Crash on deleting physics bodies that are colliding?
Posted: Tue Jan 17, 2012 10:18 pm
by acp0112
does anyone know the state of this issue? i was not able to find the issue in the issue tracker. thanks.
Re: Crash on deleting physics bodies that are colliding?
Posted: Wed Jan 18, 2012 8:56 am
by Boolsheet
I don't really know the physics module in 0.7.2. Is this about destroying things during the world update time step? That's something the user should not do as Box2D does not allow it. The destruction is somewhat aggressive in this version of LÖVE and forecfully removes it out of the Lua environment too. Be careful.
In the next version however, LÖVE detects these problems and shows a Lua error instead of crashing. It will also be possible to call the destroy function during the time step, but this does not mean it will get destroyed immediately (It's still not allowed in Box2D). LÖVE just queues the bodies/fixtures/joints and does destruction after the time step. There may be additional callbacks on a fixture you called destroy on in one of the callbacks.