prettymuchbryce / easystarjs

An asynchronous A* pathfinding API written in Javascript.
MIT License
1.89k stars 164 forks source link

"End Point Is Not An Acceptable Tile" #98

Open cmiller241 opened 2 years ago

cmiller241 commented 2 years ago

I noticed in the findPath function the js will return if the endpoint isn't traversable. I'm interested in a state of affairs where a character might interact with a tile that isn't traversable (say, finding a tree with the purpose of cutting it down and get wood, finding a rock to break it and get stone, etc.). Is there any reason I should avoid removing these lines of code if I'm not concerned about whether the endpoint is walkable?

julianfox commented 2 years ago

I have exactly the same issue :-/