racerr-io / racerr

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

Braking System #79

Closed tonytangio closed 5 years ago

tonytangio commented 5 years ago

Now that #37 has been implemented, slowing down before turns is now heavily incentivised.

However, cars right now can't actually brake well at all. Currently, brakes is just inverse-acceleration. We need to implement a reactive braking system similar to real-life cars that can efficiently reduce your current speed.

This goes hand in hand with #74 - braking will allow more accurate fine tuning.

It would be even better if we had a braking system that could be changed to only affect the front and/or back wheels - this could allow us to implement drifting in the future.

RFSurdsman commented 5 years ago

You can use the brakeTorque property on the wheel colliders to add braking