qiao/PathFinding.js

dontCrossCorners no effect

Closed this issue · 2 comments

I have already set allowDiagonal: true, but dontCrossCorners not effect ,it still can't cross corners

brean commented

I don't think I understand what you mean, the don't cross corners feature works as I would expect it.
Without don't cross corners the path can go though the corners of a wall:
the path goes thorugh the cordners
with don't cross corners it makes some space:
the path takes some extra space from the cordners

way 1
qq 20180411105820

way 2
qq 20180411105909

I thought it can find a way in way 2.
So I misunderstand it's meaning ...