Character Controller Moving down Stairs problem

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

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?

betajaen

06-02-2011 17:15:44

It's likely to be my gravity code. However; does it fall at a normal speed? Compared to other objects in the scene.

mamairaja

06-02-2011 18:27:17

yup it falls like others,
but it's doesn't move faster when move down on the slope, when climbing on the slope it gos faster.

betajaen

06-02-2011 19:43:47

I'll see if I can add some code to raycast downwards when it's hovering in the ground, and apply gravity for only if the character is n metres of the ground. I want to try and finish BuggySwires by Friday, so I'll add it then.

mamairaja

07-02-2011 03:59:25

Thanks Betajaen

AfyDriver

13-09-2011 10:14:07

hi mamairaja :D
can you tell me how you create the slope ?