How to perform multi units surround one house just like COC

Hi,

I have work on A* for nearly a month and I must say this is really a very good plugin.

And the situation now is that, I want to spawn about 40 units and command them to surround a house and attack it.

My expectation is that, each units will find a different destination around the house and will have a different path to their own destination , at last they will spread out and surround the house, just like what happened in COC and BoomBeach.

But now my game behaves wrong.
I used ABPath for pathfinding, each unit had a SAME destination and SAME path, at last they would stand together around the destination point but didn’t spread out and surround the house.
I have used RVOController for pathfinding, it can help fix crowding when units go along path, but it is no help for spread out around the house.

I am really stuck on the problem, can anyone help me or give a hint? Thanks.

As you can see, the units in red circle is stuck, but I hope they can go to the yellow circle.

1 Like

Hi

Did you ever solve this? Anyone know how to do it?

Thanks.