diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-12-26 05:50:01 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-12-26 05:50:01 +0400 |
commit | 4e604642de11603ad1cff1b5b0e679e8a7c13bd9 (patch) | |
tree | 4f509f948b2ec32fb1654de574a1d04d319ecc6d /source/gameengine/Physics | |
parent | 13f49f31017f40c137f16183780e1c706598ab2a (diff) |
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.
Diffstat (limited to 'source/gameengine/Physics')
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp index 5a6e90cddd5..66c6d1aa251 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp @@ -486,9 +486,6 @@ bool CcdPhysicsController::CreateCharacterController() 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->setFallSpeed(m_cci.m_fallSpeed); |