Merge pull request #296 from rraallvv/master

Stop adding motion in the kinematic character controller if the walk dir...
This commit is contained in:
erwincoumans 2014-12-16 14:37:05 -08:00
commit c7d9c5ba5b

View File

@ -636,7 +636,7 @@ void btKinematicCharacterController::playerStep ( btCollisionWorld* collisionWo
// printf(" dt = %f", dt);
// quick check...
if (!m_useWalkDirection && m_velocityTimeInterval <= 0.0) {
if (!m_useWalkDirection && (m_velocityTimeInterval <= 0.0 || m_walkDirection.fuzzyZero())) {
// printf("\n");
return; // no motion
}