What's with wheels slip?

I am wondering why on those unity projects I’ve found in order to learn Unity (car example. jcar and “mars explorer”) the player 4 wheeled vehicle always slips on the terrain as if terrain were made of splippery Ice.
I tried to adjust sideways friction parameters but it does not work. It even slips backwards or forward when wheels are not being applied a torque force.
In the mars explorer from http://marsxplr.com not only friction is low, but the vehicle seem to gain momentum instead of stopping over time.

Compare it with 3dRAD.com freely downloadable engine and buggy model simulation project and the difference is notable. I did a buggy simulator back in 2005 by using 3impact.com engine and it actually feels like a car, not like a hovercraft. I can post my buggy program here if anyone wants to test it to compare.

DarkBasicPro physx projects also behave well.

Is it the terrain or track material that need some friction settings, or is there any other parameters to adjust?

I would like to hear someone’s experience on how to get that kind of simulation correct.

Thanks in advance,

JD

If you do not like how the Unity WheelColliders behave, you can write your own: Perform a Physics.Raycast down from every wheel position and use Rigidbody.AddForceAtPosition on the car’s rigidbody to apply whatever forces you like.

It may require a bit more understanding of the physics, but it allows much more control over the wheel’s behavior.

Am not friend of adding code to complement physics engines, specially when there are so much collision tests that can slow down the program or add strange behaviour, since the natural movements are the physics engine attractive in the first place.

Upon further digging on this issue, I have the theory that the problem could be related with the “rigidbody sleep velocity” because the wheels start ignoring physics parameters the moment the car stops.

EDIT> I see… sleep velocity is not a wheel colider property. But something related could be.

Wow. That was easy. In the carTutorial by Andrew Gotow it is just a matter of set the stiffness parameter of each wheel collider to its default value of 1. Originally it was 0.022 in the downloadable project.

I still have to check the Mars Explorer and the Jcar example,but this finding definitely solves the slip without the need of extra code.

I have the same problem…
at fast speeds, the wheels are fine, but at slow speeds, the vehicle slides sideways like on a frictionless surface.

Its not the Stiffness factor or Forwards or Sideways friction values… setting these to large values, or defaults, just make the wheel crazy sticky, unrealistic at speed, but still slides without friction when at rest/slow.

Somethign else must be going on.
any other theories ?

Sliding around at slow speeds is due to undescribed behaviour when velocities get close to 0 when calculating slip ratios, ie something divided by something very very small gives a slipratio that causes unwanted forces, you wont get rid of that without doing your own tyremodel and solving the problem of low speed ratios.
Chris

Thanks SpookyCat.

I also noticed that the same effect is still there at high speeds also, if you drive along straight, but with a slight left right slope, the car still slides sideways down the slope, its just harder to see because of the large forward velocity.

I guess the sideways slip is seperate problem from the forwards slip, and probably vice versa also…
Though forwards slip, is less jarring.

If I come up with a nice solution I’ll post it.

couple of other things I noticed…

Changing the Stiffness, for different surface settings… seems to effect the wheels grip OK (I can see it slipping more, with a lower stiffness)… but if I read back the “forwardSlip” (to see how much slip is currently happening) the value does not change on different surfaces (for a given high torque)… isn’t that odd ?

aslo… it looks like sideways and forwards slip are modelled seperately…

do you know if… when one starts to slip, it immediately puts the other component also into slip mode…
I think it should, but not sure if it actually does or not… it would be nice to know…

For example… if you do a burnout (forward slip)
You should also lose sideways slip.
(and vice versa)