How to detect which side is the raycast hitting?

Hi everyone, I just want to ask on how can I have object detect which side of it is being detected by the raycast. I want to have the player to initiate different animations depending on which side the object is being interacted.

My guess you could attatch seperate colliders in each side to achieve it simply.

transform the coordinate into local space of the object being hit, and then check if x is greater than or less than 0, so see what side it hit!

Vector3 hitPtLocal = hitObject.transform.InverseTransformPoint( hit.point ); // world to local
if( hitPtLocal.x > 0 )
    // right side
else
    // left side