prettymuchbryce / easystarjs

An asynchronous A* pathfinding API written in Javascript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

need option to prevent/allow diagonal when next to obstacle

PrimeLens opened this issue · comments

Hi, when walking on 0
[1, 0]
[0, 0]
there should be an option to allow or prevent the diagonal when next to one obstacle.

Also
[1, 0]
[0, 1]
to allow or prevent when walking between diagonally between two obstacles

Hello. Sorry for the delay. I can see how this would be useful, and I agree that this should be a feature. Something like enableCornerCutting() and disableCornerCutting() methods on an easystar instance.