- Home /
Question by
homerpretzel · Apr 03, 2020 at 12:30 AM ·
raycastraycasthit
Raycast from NPC
Hi guys,
In my game, I have an NPC who needs to detect the player and shoot at him. It's a tactical RPG, so the NPC needs to "see" if the player is the right, left, in front or behind.
I think I can use the raycast for this purpose.
Would this be a good idea or there's a better way to solve it?
Thanks in advance
Comment