I am making a RTS game. So far I have made it possible to spawn soldiers in the game, and make them move to where you click on the map with the pathfinder behaviour.
Here is the problem. If I have multiple soldiers and I click on a location for them to move to, they all go to the exact same place. This means that they are now all behind each other, so it looks like there is only one soldier.
How do I make sure they avoid standing on the same place behind each other?