Issue with two cars collision

Hello
In my project, I have 2 cars. One is driven by player (Unity’s Car control script), and other one is standing still. Both have rigid bodies (weights around 1500), and both have box colliders. When I hit the stationary car while driving (with bigger speed), My car sometimes flies up in the air and spins like crazy. I can’t figure it out. Both rigid bodies have Continous Dynamic collision detection

Lowering RigidBody.centerOfMass helps make cars more stable.

But most of the time cars are colliding in almost normal way, but sometimes when they crash they are literally ejected into air.
I can’t reach the normal, reliable driving model. I would like to achieve car physics like in eg. GTA SA

Do you have a gif?

Will post it tomorrow because I’m on a small trip now

Edy’s vehicle physics are basically GTA SA. But wheel collider is turned by default for expected masses. For example the wheel collider should be about 20 and the car itself between 800 and 1600 roughly, for a typical car.

The reason it springs in the air is most likely due to poor masses your end.

Assuming both wheel and car masses are OK you’re probably experiencing the wheel collider itself getting buried in geometry. This can cause an explosive force so you either clamp the max force the car can move at, or you protect wheel colliders from intersecting too much.

1 Like

I will check the masses tomorrow. And how can I secure wheel colliders from intersecting?
And If I want to create heavy Truck, What would be the masses? You mentioned that normally there is 20 for each wheel, And around 1000 for car

I haven’t had to do it myself yet but I remember some threads where users put box colliders just above the ground to stop the wheel colliders from intersecting. I think that was the deal.

But personally I dont think that is the problem, because the problems are only when collision between cars occur

But some collisions could deflect the colliders downward perhaps.

Maybe, will check it. And can it be caused by wheel colliders from one car intersecting with box collider from other car? Or does it only apply to wheel colliders?

Wheel colliders are springs. They get more explosive the more they’re penetrated, depending on the spring settings you’ve used. So don’t let them intersect too deeply with other cars or the env. Test it if you have trouble believing, or lower the suspension strength/stiffness.

Will test it tomorrow And let you know Here If everything works