children rigidbodies and triggers ignored

Hi

If you have 2 rigidbodies with triggers one is completely ignored and giving all kind of weird results.

Create sample scene:

GameObject1:
Add Rigidbody with script attached that detects “ontrigger” enter or collisions. Add a boxcollider to it and set is as trigger.

GameObject2:
Add Rigidbody, attach another script that detects ontrigger. Add boxcollider and set it as trigger.

Now place GameObject2 as a child of GameObject1 and set them distant from each other so they don’t overlap.

Now create whatever other gameobject with a box collider and set as trigger. Let’s name this gameobject “Wall”.

Test it:

Now collide GameObject2 with the wall. I would expect a print out on trigger enter from the script attached to gameobject2.

What happens since 2020.1 alpha: You will only get GameObject1 detecting the impact. GameObject2 script doesn’t print jack. And randomly, when it does, it says it collided with itself instead of whatever you collided with.

1 Like