Rigidbody detect collision with the side of an object

I’m creating a 2d platformer and I want to interact with the world in a very contextual way, In order to gain context on where the player is I want to be able to detect collision with specific sides of my platforms.

I basically want to know the best practice method of detecting collision with specific sides of an object.

I am NOT using a CharacterController so the CollisionFlags does not apply, I’m basically wanting to recreate the collision flags with my Rigidbody character

alt text

I believe one possible answer would be to create multiple child empty objects as children of your platform. For each of those empties, give each one a collision box and size appropriately. By detecting collisions with your own manually created collision boxes you will now have a much finer grained control over detection of where an interaction occurred.