PathFinder icon indicating copy to clipboard operation
PathFinder copied to clipboard

Repeated A* path generation

Open ghost opened this issue 4 years ago • 0 comments

Hi,

I noticed none of the examples show case this but if you don't call AStar::getInstance().clear() between repeated path generation then for some reason it just always generates a wrong path after the first pathFinder.findPath<AStar>() call. I didn't look into the internals of why, but I noticed that when generating different paths over and over you would get a correct path then after that it sort of generates what it feels like.

ghost avatar Jun 02 '20 13:06 ghost