How to make npc fov?

the best way is not to use “lots o’ raycasting” because that’s very bad for performance and sometimes not effective. Instead he should just use the dot product and loop through all players/npcs and also a ray to detect if there’s a wall.

1 Like