Wheel colliders are sleeping by default until disable/enable

Wheel colliders are sleeping until i disable and enable them again.

My vehicle goes through the ground. After poking around I just went ahead and disable/enable them and the vehicle started behaving as expected.

Current workaround

    foreach (var wc in wheelColliders)
    {
         wc.enabled = false;
         wc.enabled = true;
     }

Please file a bug with a minimal repro project so devs could be notified of the issue.

Sounds good! Filed the bug! Thanks

I have the same problem with 6000.2.0f1.

Do you have the link to the issue in the bug tracker?

Thanks,
Jus

Addition:
For me, the issue only seems to occur with dynamically added objects (cars).

Also, strange things happen when a car is removed from the scene. It seems that the WheelColliders of other cars partially break.

This is all new in 6.2.
6.1 worked without issues.

Hi, sorry heads down in crunch mode. Unity closed my bug as I didn’t have a good enough repro (they’re right about that)

It is runtime related as the prefab I provided doesn’t have running code and I too load vehicles on the fly.

The workaround I shared is good enough for me (and anyone that needs to unblock) as I’m in a rush but I’m hoping this gets fixed later on in their core code.

Thanks for the update! The workaround you shared works well for spawning vehicles (prefabs), but as I mentioned earlier, I’m still running into issues when trying to delete them. I haven’t found a workaround for that part yet.

I’m currently working on a sample project that can reliably reproduce the issue. Once that’s ready, I’ll submit a proper bug report to Unity.

Update:
I created a sample project with a simple reproduction szenario and submitted a bug report. I will let you know, if I get feedback.

Update:
Unity Issue Tracker - Wheel Collider does not interact with other colliders when the GameObject is destroyed and instantiated

I also have this issue when deleting objects. The only workaround I found, is to pool objects instead of deleting them. But this work if you need to delete entire object, not just part.