In front or behind my object?

Hi there…
I would like to do a check to see rather a position is in front or behind my Player.
Can’t really seam to figure this one out…

Here’s an image that might make it clear:

Hope someone will help. Cheers :slight_smile:

See here, except use .z instead of .x.

–Eric