Original Post
Untill now I've been doing all my units movement with Craigs autonomus vehicle algorithms. With those algos, each vehicle steers itself by always trying to keep an open rectangle infront of it at the same time that it's trying to move for the destination. To do formations, you just have one vehicle trying to get to the dest and the other ones trying to get into a certain position behind the leader. Now I'm trying to make some more robust pathfinding and with a pathfinding algorithm I generate a path madeup by a list of waypoints for the lead vehicle. Now the problem is the formation, if for example the path goes through a narrow opening, the leader will get through but all of the formation will get stuck behind. What should I do? Should I generate a path for each vehicle in the formation? Thanks.