{"repo":"OlegDzhuraev/NavMeshAvoidance","free":true,"listed":false,"github":"https://github.com/OlegDzhuraev/NavMeshAvoidance","clone":"git clone https://github.com/OlegDzhuraev/NavMeshAvoidance.git","description":"Custom Nav Mesh Avoidance to replace default one in Unity.","language":"C#","stars":94,"topics":["avoidance","navmesh","pathfinding","unity"],"license":"MIT","category":"game-templates","readme_excerpt":"Nav Mesh Avoidance Custom Nav Mesh Avoidance to replace default one. This is a simple avoidance implementation, which allows to prevent situation with NavMesh agents moving too close to each other - they trying to move using optimal path, but it just looks weird. You can combine this Avoidance with default one (agents will never move through each other) or disable Unity's avoidance (avoidance will look smoother, but agents will be able to move through each other). If Use Spatial Hash parameter enabled, algorithm works fine with up to 1024 agents. If not, algorithm works fine only for small amount of agents, like 10-100 . How to install You can install plugin via Unity Package Manager as git package from github repository: You also can download it directly from github and place into Assets folder. How to use First of all, add Avoidance component to any GameObject on scene(once). Next, when you spawn any agent, you need to add it to the Avoidance class like this: And now this agent will avoid the other added agents. You also can disable default Unity avoidance. In this case agents will sometimes move through each other, but in priority for them will be to avoid others. Idea of disabling default avoidance is better navigation without \"friction\", which can be noticed when using default avoidance and 2 or more agents try to move through other one. When destroying any agent, dont forget to remove it from avoidance too: Ordering and Formation Basic classes added as controls example ","default_branch":null,"files":null,"tree":[],"storefront":"/r/OlegDzhuraev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OlegDzhuraev/NavMeshAvoidance/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}