Jump to content

[SOLVED] Physics Stopped when Editor Opens


photo

Recommended Posts

Posted

I found that ctrl + space stops the physics in the editor, I was wondering if there was a way that we could start the editor with physics stoped and use ctrl + space to start it again.  It would be nice for world editing purposes for the dynamic objects to not move themselves when our artists are editing worlds.  I was sort of able to do this by engine.physics.setEnabled(0), but then ctrl + space no longer works.  Is there a way we can hook into whatever its doing and make it happen on start up?

 

Thanks

Dusty

Posted

Hi,

Please use engine.game.setEnabled(0|1) rather than engine.physics.setEnabled(0|1). It should work with "Ctrl + space".

×
×
  • Create New...