BGE: Don't set the character controller's gravity when creating the controller. The default from Bullet works much better than what we were using.

This commit is contained in:
Mitchell Stokes 2012-12-26 01:50:01 +00:00
parent 13f49f3101
commit 4e604642de

@ -486,9 +486,6 @@ bool CcdPhysicsController::CreateCharacterController()
m_characterController = new BlenderBulletCharacterController(m_bulletMotionState,(btPairCachingGhostObject*)m_object,(btConvexShape*)m_collisionShape,m_cci.m_stepHeight); m_characterController = new BlenderBulletCharacterController(m_bulletMotionState,(btPairCachingGhostObject*)m_object,(btConvexShape*)m_collisionShape,m_cci.m_stepHeight);
PHY__Vector3 gravity;
m_cci.m_physicsEnv->getGravity(gravity);
m_characterController->setGravity(-gravity.m_vec[2]); // need positive gravity
m_characterController->setJumpSpeed(m_cci.m_jumpSpeed); m_characterController->setJumpSpeed(m_cci.m_jumpSpeed);
m_characterController->setFallSpeed(m_cci.m_fallSpeed); m_characterController->setFallSpeed(m_cci.m_fallSpeed);