I have a building object, with separate meshes under it as children as such —>
Building(Parent)
- |—main structure
- |—roof
- |—window
- |—base
The main structure object has a box collider on it. Now, when I detect collision and try to output Debug.Log(col.gameObject.name) (col being a Collision instance), it gives me the name of the the main structure gameObject instead of the parent building object. I believe this is not what generally happens with Unity Collision. Does someone have any idea what is happening?