Advanced NavMesh Usage - Beyond Simple SetDestination | Unity Tutorial

Published: 15 July 2025
on channel: LlamAcademy
8,649
299

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-a...
🎮 Play the full game for FREE on Itch: https://llamacademy.itch.io/dino-attack

👨‍💻Get my NEW Unity Real Time Strategy course: https://www.gamedev.tv/courses/unity-...

🙏 Support LlamAcademy & polyperfect by purchasing these assets!
🦖 polyperfect Dino Pack: https://assetstore.unity.com/packages...
⭐ polyperfect Ultimate Pack: https://assetstore.unity.com/packages...

🔶 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/?sect...

📚 Resources:
🟠 AI Series Playlist - Learn all about the NavMesh:    • AI Tutorial Series in Unity - NavMeshes, N...  
🟠 Unity Behavior Playlist - Learn all about Unity Behavior, the FREE Behavior Tree Package from Unity:    • Learn Unity Behavior  
🟠 Learn more about how Dino Attack was made:    • Dino Attack Tutorials - How to Make an Inv...  

🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🧡 Patreon:   / llamacademy  
🧡 YouTube Member:    / @llamacademy   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.

Chapters:
00:00 Topic Introduction & High-Level Solution
02:30 Move towards a target while staying on a platform | NavMesh.Raycast
06:40 Move towards a target when unable to fully get to the enemy unit
09:20 How to tell if an agent reached its destination
09:40 Key Takeaways & how to support this project.


On this page of the site you can watch the video online Advanced NavMesh Usage - Beyond Simple SetDestination | Unity Tutorial with a duration of hours minute second in good quality, which was uploaded by the user LlamAcademy 15 July 2025, share the link with friends and acquaintances, this video has already been watched 8,649 times on youtube and it was liked by 299 viewers. Enjoy your viewing!