fix warning in character controller
This commit is contained in:
@@ -340,7 +340,7 @@ void btKinematicCharacterController::stepForwardAndStrafe ( btCollisionWorld* co
|
|||||||
if (callback.hasHit())
|
if (callback.hasHit())
|
||||||
{
|
{
|
||||||
// we moved only a fraction
|
// we moved only a fraction
|
||||||
btScalar hitDistance = (callback.m_hitPointWorld - m_currentPosition).length();
|
//btScalar hitDistance = (callback.m_hitPointWorld - m_currentPosition).length();
|
||||||
|
|
||||||
/* If the distance is farther than the collision margin, move */
|
/* If the distance is farther than the collision margin, move */
|
||||||
// if (hitDistance > m_addedMargin)
|
// if (hitDistance > m_addedMargin)
|
||||||
|
|||||||
Reference in New Issue
Block a user