Cooperative pathfinding allows units of the same team to look "smart". They can pathfind, helping each others. (like units in age of empire for exemple)
They don't need to repath all the time, they don't even dodge each other, they just pathfind in space and time (but no need to be Einstein to understand it !), aware of others. (classic A* uses only space)
You can, of course, select and pathfind several agents at the same time to test...
You can download the test archive here:Commands:
Add/Delete an obstacle [Left clic]
Select an agent/Drag and Drop to select multiples agents [Left clic]
Pathfind to a goal [Right clic]
Add an agent [Space]
Delete Selected Agent [Del]
http://wordoxhelper.free.fr/Projet%20pathfinding.zip
The file to compile is (of course) Main. (DisableDubugger because I debug a lot of dati=>slowdown)
Known issues: (it's just a test program please don't be too exigent yet, a final version is coming for RTs purpose )
1- Deadlock possible if you play in a 1 tile large corridor (ie Agents danses to the left and right without stopping)
2- Please do not add agent in front of a current path walked through. (except if you repath by right clicking)
Thank you to remport any comment or bug.