From 1ad20811b88726f803cfca4101262f667207b5ac Mon Sep 17 00:00:00 2001 From: Benau Date: Thu, 28 Apr 2016 08:23:50 +0800 Subject: [PATCH] Fix leaning value --- src/karts/kart_model.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/karts/kart_model.cpp b/src/karts/kart_model.cpp index 48d2f42cf..2430e00ce 100644 --- a/src/karts/kart_model.cpp +++ b/src/karts/kart_model.cpp @@ -883,11 +883,11 @@ void KartModel::update(float dt, float distance, float steer, float speed, // higher in the ground so that the wheel still touch the ground. if(current_lean_angle > 0 && (i&1) == 0) // i&1 == 0: left side { - pos.Y -= current_lean_angle; + pos.Y -= 2*current_lean_angle; } else if (current_lean_angle < 0 && (i&1) == 1) // i&1 == 1: right side { - pos.Y += current_lean_angle; + pos.Y += 2*current_lean_angle; } m_wheel_node[i]->setPosition(pos);