How to disable all physic calculations? [solved]

OgreMage

27-04-2008 21:22:53

Is there an easy way with NxOgre to disable all physics!

I wish to add a hot-key to my app that turns them all off/on so I can easily compare the framerate difference with it on or off at any-time.

Thank you very much!!!
OM

betajaen

27-04-2008 21:38:29

Manually inject time events when needed. You set the "framelistener: no" in the World params when you created it, then call the PhysXDriver (accessible via World) to simulate at the start of a frame and call render at the end.

OgreMage

27-04-2008 22:52:08

Got it, dont call simulate and render to disable physics.
Thank you.