I have a funny problem. I am playing with various triggers and all seems to be fine. They work fine. BUT when I have this kind of situation:
EmptyGameObject(attached stript)
|
—> Mesh (with rigidbody and BoxCollider)
it seems that when I use OnTriggerEnter(Collider collider) in attached script in parent emptyGameObject it cannot detect any collisions coming from BoxColider attached to the child component.
Does that means that if I am using a OnTriggerEnter(Collider collider) in a script that is NOT attached to a same GameObject that has BoxCollider I cannot get those collisions?
You are actually correct. You cannot call a OnTrigger event from an object that does not have a trigger collider attached. It must be called from the object that has the trigger attached. You can though, send a message to the parent or root of that object or simply call a function from a script on that object.