I need an object to have 2 colliders and I want to detect which one of these 2 colliders hits another object I have. I already tried setting a collider in an empty child object and another in the parent, but the collision on the child also triggers a collision in the parent. I need collision detection independently. I will very much appreciate your feedback.
The simplest solution is to put them both in different children and not detect the collisions in the parent.
Fine. I added 2 empty objects with a collider each one and removed the collider I had in the parent object. Now it is working. Thank you.