Make Your NavMeshAgents Smarter by Surrounding Their Target | AI Series Part 27 | Unity Tutorial

Learn how to make your NavMeshAgents SURROUND their target, instead of just running to the center point of their target. In this tutorial we’ll be implementing a simple solution to the “dumb AI“ problem where your NavMeshAgents get bunched up and create a funnel or wedge when trying to follow a target. We’ll implement a simple AI Manager singleton that will set the destination of NavMeshAgents to specific points around the player at a defined radius. We’ll learn a little bit of math about how the Unit Circle and (Sine) and (Cosine) trigonometric functions can help us solve this problem without a bunch of raycasting or list manipulation. As always, all code from this video is available on GitHub: ---- Believe in LlamAcademy’s mission and have received value from the videos? Consider becoming a Patreon supporter: ---- Most tutorials come from kn
Back to Top