So, if you look in the editor with the Navigation tab open, and select a NavMeshAgent, there is an option to “Show Neighbours”, which shows all other nearby agents, so clearly the neighbours are already calculated somewhere. I assume they are used for local avoidance.
Is there some way to access them? If not, there should be, as that would greatly reduce the complexity of finding other nearby agents.
Right now my use case is having the agent look at other agents it is passing. I am aware there are other ways of doing it, just thought using the agent’s neighbours would be more efficient.
Bump!
this should be exposed for sure. So many opportunities missed
Calculate agents at front - to find better way mabye if to many of them.
Calculate distans to other agents within some range - then should be an option to change radius to check neighbours.
Sure we can all make with workarounds like triggers or some raycasting but why if such a feature is already here?
Would be very helpful for some crowd control I think.