How You Can Find the OffMeshLinks a NavMeshAgent Will Take | AI Series 43 #Shorts




Published: 20 Oct 2022

Full Tutorial: https://youtu.be/PzUsjEB2cQ4


In this short tutorial you'll learn how to find the OffMeshLinks (high level component: NavMeshLink) that a NavMeshAgent will take on their current path.

Unfortunately, Unity does not provide a way to query the NavMesh for OffMeshLinks, so it's not possible to find ALL OffMeshLinks (unless you have all OffMeshLinks as NavMeshLinks and do something like FindObjectsOfType󠀼󠀼 NavMeshLink()).


Using this method, regardless if you're using a NavMeshLink or OffMeshLink, you can find the exact points that a NavMeshAgent will traverse an OffMeshLink between!


As always, all code from this video is available on GitHub: https://github.com/llamacademy/ai-series-part-43


As usual with the AI Series, we're using the NavMesh Components: https://docs.unity3d.com/Manual/NavMesh-BuildingComponents.html not the built-in navigation system.


📱 Let's stay connected

YouTube: https://youtube.com/c/LlamAcademy

Patreon: https://www.patreon.com/llamacademy

Facebook: https://facebook.com/LlamAcademyOfficial

Twitter: https://twitter.com/TheLlamAcademy

TikTok: https://tiktok.com/@LlamAcademy

Instagram: https://instagram.com/LlamAcademy


----


Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: https://www.patreon.com/llamacademy


----

Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.

I also have some Unity Assets: https://assetstore.unity.com/publishers/22409?_aid=1101l9QvC

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.