Some clarity please.
It appears that if display.remove() is called on an object that was used as a physics body, the object is also removed from the physics engine. It is noted in the docs that calling physics.removeBody() on that object will not work if called during a collision event handling cycle. So what happens if the object is removed from the display via display.remove(object) or object.removeSelf()? Is this also going to fail? Is it bad practice to call “removeSelf()” on a physics object without calling “removeBody()” on it first?
Finally, it appears that this might be occurring when a physics object flies off the screen. Not sure yet. Is this true? It’s possible to test all of this stuff, case by case, but why put every developer through that when a note in the docs could save that time? And some of these details could have hidden negative side effects that don’t show up in simple case-tests… knowing the details of what the desired method functionality is can also help avoid bug reports for things that aren’t bugs-- hey, that would save Corona’s team time as well as us developers!..
Look, I know you Corona guys are working hard to give us this cool tool, but it would be great to have these kind of details in the documentation.
[import]uid: 10818 topic_id: 30176 reply_id: 330176[/import]
