- Home /
How to make a car not slow down while turning?
Hello. I have set up some car physics of my own and they seem to work quite well but one problem I keep running into is that my vehicle loses a massive amount of speed while turning plus it does not turn very sharply either. The turning almost acts like a secondary brake because of the speed lost and I was wondering what might be causing this. I am assuming that it has something to do with my steer angle (which changes based on speed) and / or my front tires' settings. Has anyone run into this problem before or do you have any solutions? Thanks.
Answer by Litleck · Sep 10, 2017 at 06:43 PM
If your script is using two ifs in one update loop one if being forward and the other being turning so when turning occurs it'll go to that if and stay on it until there's no more turning. So you could either have two update loops or detect both in one if and go from there.
Hope this helps!
Answer by JanetEscGames · Sep 05, 2018 at 03:42 PM
The roll bars described in this thread solved this problem for me:
https://forum.unity.com/threads/how-to-make-a-physically-real-stable-car-with-wheelcolliders.50643/
(sorry for raising an old thread from the dead)