polygonPolygon doesn't work for concave polygons
Closed this issue · 2 comments
thisredone commented
davidfig commented
Concave polygon collisions are a more difficult algorithm and are currently not supported. (I updated the documentation to reflect this.) The best way to handle these collisions is to break down the concave polygon into convex polygons and then test those convex polygons. You can check out this library: https://github.com/schteppe/poly-decomp.js
thisredone commented
Sure thing. Thanks for the link