r/unity_tutorials • u/LlamAcademyOfficial • Sep 07 '21
Make Your NavMeshAgents Surround Their Target Better With This Simple Surrounding Algorithm | Full Tutorial in Comments
143
Upvotes
2
u/rc82 Sep 07 '21 edited Sep 17 '25
cautious lush fly teeny fine sulky quiet start capable work
This post was mass deleted and anonymized with Redact
1
2
2
u/LlamAcademyOfficial Sep 07 '21
Full Tutorial on YouTube
Hey all! Happy #TutorialTuesday!
This week you can learn how to upgrade your NavMeshAgents following logic to surround their target, instead of having them all bunch up trying to get to the center-point of their target. Make your NavMeshAgents form a circle around their target with less fighting! To do this, you'll need to have an AI Manager to control the destinations instead of having each Agent control its own destination. This one was an email requested topic! If you have a topic you'd like to see covered, suggest it and I might just cover that too!
As always, full project code is available on GitHub!
If you're getting value from this series, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!