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.