From db31237d195f103820730cdf42efbdeb53e2f7dc Mon Sep 17 00:00:00 2001 From: hiker Date: Fri, 31 Mar 2017 23:13:38 +1100 Subject: [PATCH] Removed old workaround for uneveness in tracks, which contributed to karts sometimes being able to drive up walls. --- src/physics/btKart.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/physics/btKart.cpp b/src/physics/btKart.cpp index 3b52396e2..bf6c0eefb 100644 --- a/src/physics/btKart.cpp +++ b/src/physics/btKart.cpp @@ -475,33 +475,6 @@ void btKart::updateVehicle( btScalar step ) // Give a nicely balanced feeling for rebalancing the kart m_chassisBody->applyTorqueImpulse(axis * m_kart->getKartProperties()->getStabilitySmoothFlyingImpulse()); } - - // Work around: make sure that either both wheels on one axis - // are on ground, or none of them. This avoids the problem of - // the kart suddenly getting additional angular velocity because - // e.g. only one rear wheel is on the ground and then the kart - // rotates very abruptly. - for(int i=0; i