OnTriggerEnter not working for collisions?

I was really surprised to see this, so I checked it out. It’s wrong [Edit: misleading, not wrong:)]!
& it contradicts the table at the bottom here: https://docs.unity3d.com/Manual/collider-types-interaction.html
In my test scene my dynamic rigidbody trigger cube notices when it hits my static trigger cube, and the static notices when it is being hit. Works fine for kinematic too.
@habahut I sometimes get caught out with where I put my OnTriggerEnter script, I can never remember if it needs to be on the same GameObject that contains the Rigidbody, or the one that contains the collider (I don’t think it works if it’s somewhere else entirely). From your screenshot, it doesn’t look like you have a script on either of the collider objects.
The test I did just now, I had everything in the root of both objects for simplicity.

1 Like