Advanced NavMesh Usage - Beyond Simple SetDestination
Published: 15 Jul 2025
Learn more advanced ways of making your Game AI move on a NavMesh. Most tutorials focus on "NavMeshAgent.SetDestination(other.transform.position);" which gets you up and running quickly, but also has limits on its usefulness. In this tutorial you'll see how to make your Game AI move towards units that it can never reach, pick better target locations, and even distance check across different NavMeshes.
๐จโ๐ป As always, all code from this video is available on GitHub: https://github.com/llamacademy/dino-attack
๐ฎ Play the full game for FREE on Itch: https://llamacademy.itch.io/dino-attack
๐ 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
๐ถ Stay up to date with all things LlamAcademy at https://llamacademy.dev including latest tutorials, courses, and more!
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
๐ Resources:
๐ AI Series Playlist - Learn all about the NavMesh: https://www.youtube.com/playlist?list=PLllNmP7eq6TSkwDN8OO0E8S6CWybSE_xC
๐ Unity Behavior Playlist - Learn all about Unity Behavior, the FREE Behavior Tree Package from Unity: https://www.youtube.com/playlist?list=PLllNmP7eq6TR0v1XC7UnIPvH5chSepES2
๐ Learn more about how Dino Attack was made: https://www.youtube.com/playlist?list=PLllNmP7eq6TRC1QtErorKKXUOtlxGEsem
๐งก 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.