I use the physical formula to simulate the jump of character.like this :
forwordVelocity += vector3(0.0f , 6.29 ,0.0f) ; // take upward velocity into account when determining the desired velocity
startJumpos = pCharacter->getPos() ; //get current's position
jumpTime = fTime ;
t = fTime - jumpTime ;
pos = startJumpPos + forwordVelocity* t + 0.5f * vector3(0.0f ,-16.0f ,0.0f) * t * t ;
isInAir = false ;
butBut I found the character in thisway jumped farther than the one in the ControlCharacterRb demo.
someone can expland it ?
forgive my broken english .
thank you in adance.