i managed to implement flocking into my rts game.
i'm quite satisfied with it. however there is one small problem and i'm thinking how to tackle it.
when i give an order to a group of units. one unit manages to reach destination first, and all others flock around it. but they can not reach the destination because it's occupied.
here is a video:
http://img689.imageshack.us/img689/2268/movement.mp4now, what is the most efficient of handling this? i tried to implement a number of position checks but i'm not satisfied with any of them, i tried to recalculate destinations for each unit by taking occupied positions into account...
please, advise me...