racerr-io / racerr

🏎️ racerr.io - Massively Multiplayer Online Racing
http://racerr.io
3 stars 0 forks source link

Gears System for Acceleration #80

Closed tonytangio closed 4 years ago

tonytangio commented 5 years ago

Right now acceleration is simple, and appears to resemble a linear function curve. Essentially, your car accelerates at the same speed when it is going 20kph compared to when it is going 100kph.

We want acceleration to be more like a logarithmic function curve, where at lower speeds acceleration is fast and responsive, whereas it'll be much slower to accelerate at higher speeds.

To do this, we'll need to achieve a gear system, where a car has multiple gears (5-8?). The earlier gears would allow for faster acceleration but low speed range, later gears much slower acceleration but at the same time has a higher speed range,

Compliments the braking system in #79.

RFSurdsman commented 5 years ago

If the engine is going to make sound, should also figure out, or at least research how to produce engine sound with gears shifting.

RFSurdsman commented 4 years ago

Covered by #107