How to tell if the player is looking at an object in the center of the screen

Dot Product. The range is from -1 to 1. Negative values are behind you.

Image from Gyazo

More info in this post.

1 Like