jwalkable
jwalkable copied to clipboard
Easy 2D polygonal pathfinding for Java.
Red square is obstacle, added: `Obstacle obstacle = pathHelper.addRect(p.x - radius, p.y - radius, radius * 2, radius * 2);` Demo video: https://youtu.be/M1d1wrjywuw
`pathHelper.addPolygon(polygon.getTransformedVertices());` can get stuck in an endless loop. I can reproduce it every time with the shapes that I have. I believe it has to do with the shapes being...
Sometimes the pathfinder will throw a random NPE. I've been unable to consistently reproduce it, but I'm pretty sure it might be specific to certain positions in the world. Here's...
fixed