PathFinding.js icon indicating copy to clipboard operation
PathFinding.js copied to clipboard

unexpected route

Open chings228 opened this issue 4 years ago • 1 comments

i used A* with diagonal true

In the absence of wall , the route is perfect

Screenshot 2021-01-29 at 9 04 28 AM

but if the wall pattern look like the following pic , i can't get the expected result like the absence of wall

Screenshot 2021-01-29 at 12 45 33 PM

chings228 avatar Jan 29 '21 04:01 chings228

allowDiagonal only allows the algorithm to cross a single corner hence dontCrossCorners. If you want your expected behavior, see #157

AurangAsif avatar Apr 09 '21 17:04 AurangAsif