I’ve been searching and can’t seem to find an answer to this question.
I have a player gameobject (that is not a navmeshagent) and NPC navmesh agents that patrol a specific nav mesh area mask (for example the water navmeshareamask). The issue is identifying if the players current position is within the specific navmesh area mask that the NPC’s are patrolling.
For example if the player moves onto a specific navmesh area, the NPC navmeshagents would change from patrolling the area to honing in on the player. I have the bulk of this implemented already, but can’t seem to figure out if the players current position is within the navmesh area mask that the NPC navmeshagents are patrolling. Is this doable?
Any help would be appreciated.
TIA