Agents walking on circles

Justin

Administrator
Staff member
This looks related to the stopping distance on the NavMeshAgent - try increasing this value.
 
By default is 0,1. I have increased to 0,3 but even I have tried to 3 just to make sure.
It may make things better but still not working. Look at the video:
https://www.dropbox.com/s/krw4gq5xhk0sc2p/2018-12-22_11-28-39.mp4?dl=0

Everytime 3 or more agents go to the same spot (waypoint or Rifle pickup) they stop and run in circles or run himself on the same point.
I have just copy and paste an agent from the example (4 or 5 times). Is there anything else I have to do? Any related to team work / attack on the trees? I have also the Tactical pack attack , but not sure how to use it on this tree yet.

Is there anything missing?

EDIT: They patrol fine one by one, but as soon as they are together they get stuck
 

Justin

Administrator
Staff member
If multiple agents are trying to move to the same spot at once then they'll never all be within stopping distance unless you place a really large value. In order for this to work you'll probably need to adjust the HasArrived method to be smart enough to know when multiple agents are trying to move to the same position and account for that.
 
Top