Ignore Collision from a Specific Side

Hi, I’m trying to find something like this Unity - Scripting API: Physics.IgnoreCollision but for the bottom and sides of my collider. So what I’m trying to do is when my character jumps on this object he’ll stay there but when it jumps to the sides it’ll just pass through.

And if possible I would like this to be handled in an easy way and not end up raycasting manually.

delete the bottom/sides of the collider mesh?

make a custom collider mesh and pass it to the object

I’m not sure what you mean but I tried placing the collider on top of the object. If I do this my character still collides if it’s halfway to top. To give an example if I jump from an object to another and barely miss it I want my character to pass through the object not hit it.