I know how to make an agent to reach a static point on the navmesh (Make a wander arround behaviour). I know how to make an agent move following User’s input (Player movement).
Instead, my question is more efficiency related. I can achieve a chasing behaviour by telling an enemy-agent to reach player’s position, and update the position every time interval. But this approach does not convince me in any way. If the interval is to wide, the enemy looks foolish; and if the interval is to short, it’s too processor intensive (as it has to recalculate the path every interval).
So, if I have to use Unity’s NavMesh system and need to make enemies chase my moving player, which is the best approach?