r/unity_tutorials • • Sep 07 '21

Make Your NavMeshAgents Surround Their Target Better With This Simple Surrounding Algorithm | Full Tutorial in Comments

143 Upvotes

5 comments sorted by

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!

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

u/LlamAcademyOfficial Sep 07 '21

You're welcome!

2

u/[deleted] Sep 08 '21

[removed] — view removed comment

1

u/LlamAcademyOfficial Sep 08 '21

Definitely! Same idea can be used for all kinds of shapes!