How detect raycast Hit on wall or RoofTop of the same single mesh Object,How Detect RoofTop And Walls of The same Object With Raycast

I am working on the Rope Hero Project. The main Hero throw the rope and if it hit the walls it climb the wall,that working great.

But now my question is that how i can detect that the raycast hit on the rooftop of the building.because i want to use the roll animation if the hero raycast hit on the rooftop.

You can add your own colliders (like approximating Box Colliders onto it) to the mesh, and put those into their own sub-gameobject, with the roof sections using one layermask, and the wall sections using another layermask, or with different tags.