So I’ve got an object that I want to trigger when it enters a specific trigger volume. The object has a child with a trigger that’s larger than the parent object that is causing the trigger to fire sooner than it should. I put the child on a layer that the main trigger should ignore but for some reason the child is picking up the parents layer.
Does a child always use the parent’s layer? Is there any way to force it to use it’s own layer instead?
Could be anything tho. Random, well, that you think of as random things often occur like that while building. Troubleshoot. Just add in print read outs etc, ask what is the name if trigger being triggered, its layer etc.
Here’s the reason: If you don’t put a Rigidbody on the child Collider/Trigger, Unity treats the child Collider as a part of a compound Collider, consisting of the root objects Collider and the child Collider. More info here: Unity - Manual: Rigidbody component reference