Car Tutorial -car fishtails easily

Hi guys,

I’m running through the car racing tutorial, and I am trying to improve the handling of the tutorial car any way I can. Right now when turning, it fishtails really easily. I don’t know enough about the Car.js code to immediately spot what i need to change. I assume it’s something to do with the wheelfriction.

If anyone can point me in the right direction, i would really appreciate it! I’m trying to get a racing game working with a steering wheel controller, and it’s just too slippery to be fun atm.

Thanks again!

Chowderman

There’s about a half a dozen different vehicles in the tutorial project, each with quite different handling. Try swapping out and testing the different vehicles and, when you find one with handling you like, compare its settings to the ones you don’t. Also, if you read the tutorial, it explains in quite a bit of detail what the various components are and how to tweak things.

There are more vehicles? In this tutorial?
http://unity3d.com/support/resources/tutorials/car-tutorial.html

I have only found the single red stock car.

lots more, as part of the alternate physics model IIRC

well, even so, my question is more what I can edit in car.js to make the car’s handling while turning less slidey. The wheels dont seem to grip the road very well. I would love to know what variables to look at to fix it :slight_smile:

sorry for the bump, but does anyone know how to fix this issue?

You don’t need to edit the js-file. Change the values of the wheel component e.g. Grip, A and B (alternate physics). A and B are Arrays defining a Tyre model.
http://www.racer.nl/reference/pacejka.htm
http://www.miata.net/sport/Physics/Part21.html
http://www.miata.net/sport/Physics/Part22.html