mamairaja
06-02-2011 16:58:51
Hi
I have a problem when Moving down stairs with character controller. Climbing is ok. But when Moves down it has extremely slow movements.
Wonder whether this is a problem of world->advance() function.
I am using Advance Ogre framework and this is the timeSinceLastFrame calculation
Could you please tell me why?
I have a problem when Moving down stairs with character controller. Climbing is ok. But when Moves down it has extremely slow movements.
Wonder whether this is a problem of world->advance() function.
I am using Advance Ogre framework and this is the timeSinceLastFrame calculation
int timeSinceLastFrame = 1;
int startTime = 0;
while(true)
{
startTime = OgreFramework::getSingletonPtr()->m_pTimer->getMillisecondsCPU();
world->advance(timeSinceLastFrame /1000); // advance function calling
timeSinceLastFrame = OgreFramework::getSingletonPtr()->m_pTimer->getMillisecondsCPU() - startTime;
}
Could you please tell me why?