Make Your NavMeshAgents Destroy or Avoid Obstructions | AI Series 37 Preview #Shorts




Published: 10 Mar 2022

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


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


Learn how to make your NavMeshAgents break down obstructions that block their path! In this tutorial video you will learn how to make your agents consider if a particular path is worth going through by breaking down the obstructions or if pathing around them is more worthwhile.


This is done through some trickery on the NavMesh and a State Machine on the Enemy.



This _is_ a more advanced tutorial that expects you are already familiar with some other concepts.

See the below links for more in-depth explanations of those topics:

⚫ Enemy State Machine Behavior (AI Series 11): https://youtu.be/3hXkdARwREo

⚫ Baking NavMesh at Runtime (AI Series 13): https://youtu.be/QPv_V4TCi8o

⚫ Optmizing NavMesh Baking at Runtime (AI Series 14): https://youtu.be/bCC5pqNT000


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.


----


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 (affiliate link): https://assetstore.unity.com/publishers/22409?_aid=1101l9QvC


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.