Adjustment of pitch change (due to the different wheel radius).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
686540bf29
commit
f8646b5ed6
@ -955,7 +955,8 @@ void Kart::updatePhysics (float dt)
|
||||
float tire_diameter = m_kart_properties->getWheelRadius();
|
||||
|
||||
m_max_gear_rpm = m_current_gear_ratio * max_speed;
|
||||
m_rpm = ((m_speed * gear_ratio) / tire_diameter);
|
||||
// 8 is magic number again.
|
||||
m_rpm = ((m_speed * gear_ratio) / (8*tire_diameter));
|
||||
if(m_engine_sound)
|
||||
{
|
||||
m_engine_sound->speed((float)((m_rpm * 2) / m_max_gear_rpm));
|
||||
|
Loading…
x
Reference in New Issue
Block a user