When drawing the shapes to the screen, they look fine, concave.
But I get the following error from HardonCollider
Code: Select all
Error: hardoncollider/polygon.lua:295: Cannot triangulate polygon (is the polygon intersecting itself?)
What am I doing wrong?
My polygon point data is:
Code: Select all
points = {
-186.24919315577,-124.44773219639,
-192.16694276235,-79.598153931939,
-188.31077383742,-37.457341827097,
-165.52664392134,28.721597311731,
-150.64705042928,53.902376542755,
-132.25322264852,74.920525218927,
-111.31350528423,91.352632919565,
-211.66110344361,113.13521683824,
-246.87732695419,81.557252503712,
-276.96942279014,41.084532847501,
-299.90964560886,-7.3623685568735,
-313.85128972903,-62.428903045161,
}