I have a gameObject whose hierarchy contains
box collider
, kinematic rigidbody
and script
that
contains OnTriggerEnter
event.box collider
and script contains OnTriggerEnter
OnTriggerEnter
My simple question is do child trigger will run parent trigger also I have did it. it seems true and surprising!They do if the child does not have a (kinematic) rigidbody. In this case the collider of the parent basically is the sum of all colliders of itself and it's childs (compound collider).
If you want them to behave individually, they need their own kinematic rigidbodys. Make sure they ignore each other in the OnTrigger though (e.g. via tag).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With