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; break;
} }
} else {
// if (!m_wasJumping)
// we moved whole way
m_currentPosition = m_targetPosition;
} }
m_currentPosition = m_targetPosition; else
{
// if (callback.m_closestHitFraction == 0.f) m_currentPosition = m_targetPosition;
// break; }
} }
} }