diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp old mode 100644 new mode 100755 index a65f076f4..618f0e2ae --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -1266,6 +1266,12 @@ void Kart::eliminate() */ void Kart::update(int ticks) { + if(m_speed < 5.0f) + m_body->setRestitution(1.0f); + else if(m_speed<20.0f) + m_body->setRestitution(1.0f-(m_speed-5.0f)/15.0f); + else + m_body->setRestitution(0.0f); // Reset any instand speed increase in the bullet kart m_vehicle->setMinSpeed(0);