Hello guys I am back again with another questio0ns ![]()
I am working on prototype in which I can select multiple units and then move them to point where I clicked (RTS style movement). However, I am experiencing/ed two issues:
- Detour crowds. New CrowdFollowing component works better than RVO which was unusable but there are some issues when two units are not moving and stay near each other and third is trying to go between them and gets stuck because moving pawn can not push these stationary pawns.

To solve this issue I decided to turn off crowd avoidance and whole collision for pawns so they can overlap now. It is not best solution, so If you know better one let me know.
- My main issue is that when I click somewhere I would like to move there group of units. I can not move them to same location because they will overlaping. I would like to calculate e.g. box formation 2x2 (for 4 units) and move there units. I think this is doable using project point to navigation but what should I do when pawns are near navmesh edge ? I was doing some tests and Get Random Point In Radius does exactly what I need because It respects navmesh edges but I would like to predefine position of these points so they will not be random.
I need to get back two locations which are out of nav mesh back to navmesh (possible little overlaping with other units will not be issue in this case)

