From 9fdd39b075e0e787c655ade9b809871f034fb7b4 Mon Sep 17 00:00:00 2001 From: hiker Date: Fri, 24 Mar 2017 16:35:45 +1100 Subject: [PATCH] Removed unused code. --- src/physics/btKart.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/physics/btKart.cpp b/src/physics/btKart.cpp index 1aff3b8be..cf232d338 100644 --- a/src/physics/btKart.cpp +++ b/src/physics/btKart.cpp @@ -669,13 +669,6 @@ void btKart::updateSuspension(btScalar deltaTime) btScalar length_diff = (susp_length - current_length); if(m_kart->getKartProperties()->getSuspensionExpSpringResponse()) length_diff *= fabsf(length_diff)/susp_length; - float f = (1.0f + fabsf(length_diff) / susp_length); - // Scale the length diff. This results that in uphill sections, when - // the suspension is more compressed (i.e. length is bigger), more - // force is used, which makes it much less likely for the kart to hit - // the terrain, while when driving on flat terrain (length small), - // there is hardly any difference - //length_diff *= f*f; force = wheel_info.m_suspensionStiffness * length_diff * wheel_info.m_clippedInvContactDotSuspension;