Character rotates after reaching nav mesh destination

Hi. Can anyone explain to me why my character rotates in a 360 degree manner once he reaches his nav mesh destination?

He is able to walk there fine, but once he arrives he just keeps rotating very slowly.

I have set the destination in the start method so its only being set once. I thought it may have been because the destination was always being reset in the update method but thats not the case.


Looks like the character is constantly trying to get to the target.
Try increasing the Stopping distance property of the NavMesh Agent.
Also see if Auto Braking is turned off by mistake.

just change the stopping distance to 1 and it should work like magic

In my case, worked setting the height of the destination as same as my player(as the game is plane) when I make the player rotate to face the destination

transform.rotation = Quaternion.LookRotation(new Vector3(nextTarget.x, transform.position.y, 
nextTarget.z) - transform.position, Vector3.up);