Hello! I ask you a question.
How can I prevent my vehicle from tipping when turning WITHOUT using the center of mass?
Because the “rigidbody.center of mass” affects the vehicle suspension and turns very unrealistically, it does not tip over but it is not realistic.
I want to get something like this:
(See how the vehicle turns at minute 7:31 of this video): Need for Speed: ProStreet PS2 Gameplay HD (PCSX2) - YouTube
This is a classic article that explains this whole thing quite well. It is written in .js (back when Unity used to support it), but the logic isn’t too difficult to translate to C#. The basic idea is to apply a stabilising force upwards based on the compression ratio between the suspension on both sides of the axle. From there it’s just a matter of finding the right amount of force to apply to get stable turning, but still allow some compression.