Why is my enemy jittering at the end of their navigation?

Godot Version

Godot 4

Question

I have an enemy that patrols between to points (marker2D nodes) and waits at each marker2D for a few seconds. During these few seconds of waiting as they are at the end of their navigation path, they start vibrating/jittering slightly and I’m not sure how to fix this. I believe it is because they are infinitely trying to route to the position they are already at, but in this case, I’m not sure how to clear their navigation path in code to stop this. Or perhaps there is something else causing this visual bug I am unaware of

You could try increasing the Target Desired Distance property of its NavigationAgent2D.