Check for a collision from above?

Hey there,

I'm working on a project where I want objects to be falling from above, the objects have to be caught by the player, I only want them to get a point if they catch it that way, not from the side or any other direction.

I have a feeling I need to do a raycast to achieve this, does anyone know?



One way it could be done. Compare the vertical position of the hit point versus the height of the player. If it's above a certain height, it's caught on the top, otherwise it's not. It's quick and easy and doesn't require any raytracing.

Can u try putting a small box collider in front of the falling object as a child?

this would be easiest, no?