How to detect if a GameObject collides with a specific SIDE of another?

Hello.

How do I detect collision from a specific side of an object (left, right, up or down)? I am aware that this question has been asked before, but I did not find an answer that I could understand. Could someone please help me? I am quite new to Unity and I hope someone can give me a easily comprehensible answer.

I think you can convert the collision point to local position of the gameobject you want to detech the side, and use x,y,z to detech its side

The one time I did a dice roller, what I figured out was to make an empty object placed on each side of the die, assign them to public/serialized fields in the class I was using to perform the collision detection and then perform checks with 193510-image-2022-03-06-025815.png