NPC Field of View?

hi,

I’m working on the field of view…with raycast did. but on the detecting ray lines.
I want to detect in the NPC’s this field :

How can I do?

You can use this:

By applying it onto the viewDir and the direction from Player to NPC.

By using arccos on the result you have the angle in which the player is, Compare that to your VOV angle and you are done.

Or you can use this: