Merge pull request #750 from TIHan/quick_fix1

Fixed btKinematicCharacterController from clipping through walls in corners.
This commit is contained in:
erwincoumans
2016-08-25 20:26:42 -04:00
committed by GitHub

View File

@@ -453,16 +453,11 @@ void btKinematicCharacterController::stepForwardAndStrafe ( btCollisionWorld* co
break;
}
} else {
// if (!m_wasJumping)
// we moved whole way
m_currentPosition = m_targetPosition;
}
m_currentPosition = m_targetPosition;
// if (callback.m_closestHitFraction == 0.f)
// break;
else
{
m_currentPosition = m_targetPosition;
}
}
}