FIX Jittery NavMeshAgent Movement in Unity 6




Published: 18 Jun 2025

In Unity 6, 6.1, and 6.2 beta there is a bug affecting NavMeshAgents where every time you call SetDestination(), the agent briefly pauses as it recalculates a new path. This was NOT the behavior pre-Unity 6. In this video you'll see how you can solve this problem!


๐Ÿ‘จโ€๐Ÿ’ป As always, all code from this video is available on GitHub: https://github.com/llamacademy/dino-attack

๐ŸŽฎ Play the game on Itch for free: https://llamacademy.itch.io/dino-attack


๐Ÿท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly


๐Ÿ‘จโ€๐Ÿ’ปGet my NEW Unity Real Time Strategy course: https://www.gamedev.tv/courses/unity-realtime-strategy?ref=mjuzyjq


๐Ÿ“š Resources:

๐ŸŸ  Bug Tracker: https://issuetracker.unity3d.com/issues/agent-velocity-resets-to-0-when-calling-navmeshagent-dot-setdestination-to-an-unreachable-position

๐ŸŸ  NavMesh Calculate Path: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/AI.NavMesh.CalculatePath.html

๐ŸŸ  Extension Methods Documentation: https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods


๐Ÿ™ Support LlamAcademy & polyperfect by purchasing these assets!

๐ŸŸ  Polyperfect Dino Pack: https://assetstore.unity.com/packages/3d/characters/animals/low-poly-animated-dinosaurs-110313?aid=1101l9QvC

๐ŸŸ  Polyperfect Ultimate Pack: https://assetstore.unity.com/packages/3d/props/low-poly-ultimate-pack-54733?aid=1101l9QvC


๐Ÿงก Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:

๐Ÿงก Patreon: https://www.patreon.com/llamacademy

๐Ÿงก YouTube Member: https://www.youtube.com/channel/UCnWm6pMD38R1E2vCAByGb6w/join or click the Join button on any video


Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.


Connect on Social Media

Some links may be affiliate links, which at no additional cost to you, gives LlamAcademy a small portion of the purchase.