Jump to content

Liquid pathfinding algorithm suggestion


Recommended Posts

I have a suggestion for an approach to improve liquid pathfinding based on the images I took for this bug:

 

If pools of liquid ran a Dijkstra Map process that found the number of tiles to a non-solid/non-liquid tile then that map could be used to weight the dupe's pathfinding in relation to the water.

This would allow things such as dupes only diving into the water when they absolutely needed to rather than at the start of the pathfinding and would allow for deeper liquid pathing in situations like those shown in the bug.

For reference on computing and using Dijkstra Maps: http://www.roguebasin.com/index.php?title=Dijkstra_Maps_Visualized

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...