Hello!
I'm a student in a Game Design class, and I need help with a primitive game that's due tonight. It's my first time using vectors, Dot products, and 3D space.
The object of the game is simply to sneak past the NPC and reach the goal without being spotted. I'm currently writing script for the NPC, which I intend to have a "cone" of vision, as well as a maximum visibility distance. I've worked out distance with relative ease, but I haven't figured out how to create a field of view for the NPC to spot the player within. I need help with a solution for this mechanic. I'm not intending for anyone to solve it for me, but I've hit a wall, and am at the point where I cannot complete this without asking for help. I'm building in Unity.
Any feedback is GREATLY appreciated.