WheelColliders "Pop" when going through trigger object?!?

So I’m having this little problem and it’s driving me insane!

I’m using a big box collision as my trigger object. When my motorcycle goes through the trigger object, and display a log message saying that my collider hit the trigger object. Everything works fine except that my front wheel collider keeps “popping” up and down every time it hits the trigger box, which doesn’t make any sense.

I was wondering if anyone else ever had problems with WheelColliders entering trigger objects? Thanks for your time!

You say both “collision” and “trigger”. Which is it? A collision makes sense; a trigger doesn’t.

It’s a trigger (trigger checkbox checked).

Upload a .unitypackage; doesn’t sound right at all, but I haven’t used wheel colliders for a while, so I’m not sure if it’s a common bug.

Wheel colliders are actually not colliders as such, but are implemented with raycasts. By default, raycasts detect triggers as colliders (this is sometimes useful) but there is an option to switch this off in the physics settings. Go to Edit > Project Settings > Physics and disable the Raycasts Hit Triggers option.

Yep, that’s exactly what is happening! Thanks for the help :slight_smile:

So turning off Raycast collision with triggers fixed my problem, but I’d rather leave it on because I will be using triggers for many things and in some instances I might do a Raycast check on them. So I need to exclude that particular trigger from the WheelCollider Raycast ray…is the only way to do that with a layerMask?

Thanks again!