- Home /
Ignoring or overruling a NavMeshAgent destination
Hi,
I was wondering if there's a way to ignore the destination on a NavMeshAgent. I have this character which, in one state, is following a target (using its position as a destination); but that in another state, is supposed to pick a random vector and move in that direction for a certain amount of time (I'm using navMeshAgent.velocity to control this).
The problem is that, if it senses the target it stores its last known position as the destination, and will not change direction after that. Does anyone know how to ignore/overrule the NavMeshAgent desitnation or a better way to assign a random direction to the agent? In any ideas would help a bunch...
Your answer
Follow this Question
Related Questions
Possible to edit the movement of NavMeshAgent ? 2 Answers
Editing NavMesh Paths? 0 Answers
NavMesh Agent glitches in trees 3 Answers
Horde of NavMeshAgents - stops to recalculate path. 4 Answers
Find the closest point of an Invalid or Partial path 0 Answers