Detecting objects within first person view using Rays, how?
I plan on creating a method that will detect when certain objects are within your sight (On your screen, so to speak.). It is important to note that my game will be in a permanent First Person View state, so I have created a Ray, who's origin is the characters head, and the direction is the heads lookVector. Anyway, using that Ray it was easy for me to detect what object I am staring at right INFRONT of me, but it will not detect the objects in the places my mouse is not pointing at. Do you understand? What I want is that somehow, with Rays or without, i'll be able to detect whether or not a certain object is within the players sight. Thank's in advance!