AdvancedOgreFramework update timecontroller

iomismo

03-05-2010 22:38:57

Hi everyone, i wanna know if there is a way to implement the timecontroller->advance(timeSinceLastFrame) in a state in the AdvancedOgreFramework http://www.ogre3d.org/wiki/index.php/Advanced_Ogre_Framework, i mean for example in GameState. Each state has its own update(double timeSinceLastFrame) function and i thought this is where i have to advance the timecontroller,but i dont know why it doesn't work. With the ExampleApplicantion and its ExampleFrameListener it's easy as explained in tutorial 2 of BloodyMess.

Any idea?
thanks

UPDATED
do i have to initialize the timecontroller (mTimeController = NxOgre::TimeController::getSingleton(); ) after initializing world ?

UPDATED
Yes!! Sorry for the monologue. I was initializing the timecontroller before World,scene and related stuff. Since ExampleApplication creates the framelistener (where timecontroller is initialized) after createScene() where NxOgre stuff is initialized :oops: Now i have to slow the motion a bit and im done :?: