How i diplay the bodies wireframe?

majc

05-07-2008 18:42:01

What code i have to write to display the bodies wireframe?

walaber

05-07-2008 20:30:33

once:

OgreNewt::Debugger::getSingleton().init( mSceneManager );


and whenever you want to see the bodies (maybe each frame?)

OgreNewt::Debugger::getSingleton().drawLines( mOgreNewtWorld );



and to hide the last lines drawn:

OgreNewt::Debugger::getSingleton().hideLines();

majc

05-07-2008 21:30:57

Thanks man you rock! :)