Stepper - setAutomatic()

DanielSefton

20-05-2008 21:39:16

Hi,

Simple question...

What does this line do?

_stepper->setAutomatic(OgreOde::StepHandler::AutoMode_PostFrame, root);

My application crashes when I use it; possibly because I don't use a framelistener. I assume _PostFrame and _PreFrame makes use of FrameEnded and FrameStarted? How would I get this to work with a while loop?

Cheers!

rewb0rn

20-05-2008 21:47:29

I am not sure but I think AutoMode_PostFrame will call the update automatically after ever frame and as your application does not use a frame listener this could be reason for failure, probably because the stepper tries to register at the listener. You should not call this method at all but therefor update the world manually every frame. Think this has been done in some of the demos so take a look.

DanielSefton

20-05-2008 22:01:08

Ok, thanks. I'll have a look. :)