Crash on deleting physics bodies that are colliding?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
acp0112
Prole
Posts: 4
Joined: Tue Jan 17, 2012 10:16 pm

Re: Crash on deleting physics bodies that are colliding?

Post by acp0112 »

does anyone know the state of this issue? i was not able to find the issue in the issue tracker. thanks.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: Crash on deleting physics bodies that are colliding?

Post 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. :P

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.
Shallow indentations.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests