setGravity before physics.start crashes simulator

I realise you’re not supposed to do this… :slight_smile:

physics.setGravity( 0, 0 )  
physics.start()  

…crashes the simulator (as least in build #722).

Whereas this…

local mky1 = display.newImageRect("images/monkey\_1.png", 140, 160);  
physics.addBody(mky1)  
physics.start()  

…just writes a nice terminal message: ERROR: physics.start() has not been called.

That looks like a bug to me. Both should produce the nice message because basically you shouldn’t be doing *any* physics stuff until after you’ve started physics.

[import]uid: 39538 topic_id: 20159 reply_id: 320159[/import]