Fix Issue 61 related to character controller,

see https://github.com/rraallvv/bullet3/commit/6cb832140d620620c5a6e4bb8e865e83f1e0d563
This commit is contained in:
Erwin Coumans
2018-12-22 16:44:36 -08:00
parent 7740162ad8
commit 44f8064855
@@ -737,7 +737,7 @@ void btKinematicCharacterController::playerStep(btCollisionWorld* collisionWorld
}
// quick check...
if (!m_useWalkDirection && (m_velocityTimeInterval <= 0.0))
if (!m_useWalkDirection && (m_velocityTimeInterval <= 0.0 || m_walkDirection.fuzzyZero()))
{
// printf("\n");
return; // no motion