mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 13:50:04 +00:00
Merge pull request #296 from rraallvv/master
Stop adding motion in the kinematic character controller if the walk dir...
This commit is contained in:
commit
c7d9c5ba5b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user