I have two gameObjects, both with several colliders attached.
On the OnTriggerEnter event, i get the "otherCollider" info, so that i know which of the "target" colliders that have collided.
But how do i get information on which of the "source" colliders that is causing the collision?
In other words, is there any way to get a "thisCollider"?
I do have a solution my self that might work, but I'm not sure if it will make problems in the long run or affect the performace too much.
My solution is to add a rigidbody to all the child objects with a collider atteched to it, and then add the OnTriggerEnter script to every one of these objects.
But as mentioned, I'm bit worried that attaching several child objects with their own rigidbody, will affect performance. Or even worse, result in unexpected behaviour.