Hi,
I’m getting this error message when trying to add a joint between a static body image and dynamic body image, respectively known as anchor and block:
Assertion failed: (IsLocked() == false), function CreateJoint, file /Users/ansca/.hudson/jobs/Pong-DMG/workspace/platform/mac/…/…/external/Box2D_v2.1.2/Box2D/Box2D/Dynamics/b2World.cpp, line 184.
/Applications/Corona Game Edition Beta/Corona Terminal: line 9: 1932 Abort trap “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
Generated by this line:
block.piston = physics.newJoint( “piston”, anchor,block.img , anchor.x,anchor.y , 0,5 )
I have checked thoroughly and anchor, block, block.img, anchor.x and anchor.y are all valid and do, in fact, work as expected slightly lower down in the code.
Is this me or the API?
Thanks,
Matt. [import]uid: 8271 topic_id: 2259 reply_id: 302259[/import]