How would you configure pathFinder to use the most “efficient” path when finding a path? Say I have a board of tiles. Some of them have a higher cost and should be slower to travel through them than others. How do I make pathFinder use the “fastest” route and not “shortest” route?
Hmm, I can’t get it to work like I would want. In this example, all the light green grass has a speed cost of 1. I set the speed cost of the swamp/trees to 10. In the example, the Lich is taking the shortest path with a total speed cost of 31. (3 times trees + 1 grass). The FASTEST path would be to go around the trees and go through 5 grass hexes for a total cost of 5.
I’m using this.pathFinder.findPath(targetTile) to get the path. I also tried this.pathFinder.findPath(targetTile, undefined, false);