Fixed btKinematicController from clipping through walls in corners.

This commit is contained in:
Will Smith
2016-08-19 18:46:07 -05:00
parent e5626b954f
commit ba4c389c84

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; }
} }
} }