Hello there I was wondering what would be the best aproch to pause a navmesh agents movent towards a target.
this is what im using, I am animating a from and would like it to hop from one area to another on its own. I have it going there with a hop animation, but its linial movement, so even when stopped (animation), the object is moving and looks bad of course.
To pause the agent use NavMeshAgent's Stop() method. You can use the boolean to essentially stop abruptly (true) or smoothly with avoidance (false-the default).
To resume use Resume() and the agent continues to the current destination as you’d expect.
By the way, the above approach seems to be a valid alternative, though it might use a tad more cpu.