Companion AI | AI Series Part 38 #Shorts




Published: 14 Apr 2022

Full Tutorial on YouTube: https://youtu.be/FMNoiqBAf_w


Learn how to create your very own Companion AI! In this tutorial video you will learn how to create a companion that follows the player when the player moves, rotates around the player when idle, and attacks nearby Attackable GameObjects when they come within range!


A very common mechanic in video games is to have AI that follows around the player. Some, like we're implementing today, are relatively simplistic and simply follow the player, maybe attack things, and provide guidance and a sounding board for the player throughout the game. Some are more complex with their own complex behavior trees to manage commands issued to them and responding to complex scenarios.


Today you will learn the fundamentals of creating a companion AI that can be extended to more complex use cases, or used "as is" if this is your use case!


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


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.