I have a static object that I want to “Grow” each time it is hit. I have tried destroying it in the onCollision event and recreating it, but the physics body seems to still have it lying around and the simulator dies with an assertion error when I try to re-add the body with the new size.
Assertion failed: (IsLocked() == false), function CreateBody, file /Users/ansca/.hudson/jobs/Pong-DMG/workspace/platform/mac/…/…/external/Box2D_v2.1.2/Box2D/Box2D/Dynamics/b2World.cpp, line 84.
/Users/bmccabe2003/Desktop/Corona Game Edition 2010.109/Corona Terminal: line 9: 2024 Abort trap “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
Is there a simpler way to do this that I am missing?
[import]uid: 11767 topic_id: 4167 reply_id: 304167[/import]