Yonaba / Jumper

Fast, lightweight and easy-to-use pathfinding library for grid-based games
http://yonaba.github.io/Jumper
MIT License
607 stars 122 forks source link

add option for clearance in all directions #62

Open Goober5000 opened 1 year ago

Goober5000 commented 1 year ago

The existing implementation of clearance only checks for obstacles along one diagonal. This works for the problem as defined in the reference material, but it is not suitable for situations where one needs to check for clearance in a radius around the walkable point. To address that need, this PR adds an option to check for clearance in all directions. This change is backwards-compatible and preserves the existing check as the default behavior.

mokalux commented 8 months ago

for those wondering it seems this PR was merged

Goober5000 commented 7 months ago

Apparently not, according to the commit log. See related comment on PR 63.

mokalux commented 7 months ago

that is weird because in my version of jumper your PR is present! The author was posting his progress on some forum (Gideros in my case) and I may have got an updated version different from GH!

sorry for the inconvenience!