Sahnvour / PathFinder

A small, simple and generic C++ path finding library.
BSD 2-Clause "Simplified" License
83 stars 26 forks source link

Repeated A* path generation #6

Open ghost opened 4 years ago

ghost commented 4 years ago

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() 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.