Fix the kart accelerating instead of slowing down when going backwards
This commit is contained in:
parent
c2481ba68c
commit
bb1aac3857
@ -2672,7 +2672,7 @@ float Kart::applyAirFriction(float engine_power)
|
||||
//Instead of making increasing gears have enormous power gaps, apply friction
|
||||
|
||||
float mass_factor = m_kart_properties->getMass()/350.0f;
|
||||
float compense_linear_slowdown = 39.33f*getSpeed()*mass_factor;
|
||||
float compense_linear_slowdown = 39.33f*fabsf(getSpeed())*mass_factor;
|
||||
|
||||
engine_power += compense_linear_slowdown;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user