How to tell if something is in front of the player, and if so by how much?

Can be simplified to this:

And that’d need no normalisation, too. More here:

6 Likes