Closed karai17 closed 9 years ago
Whoops, fixed!
table.insert(polygon, (xs[i] and x+radius or x+w-radius) + radius * math.cos(angle))
table.insert(polygon, (ys[i] and y+radius or y+h-radius) + radius * math.sin(angle))
I was just pushing a commit that actually fixed this for your needs hahaha, take x and y in the base function...
Got this mostly working thats to @Positive07 but this needs to be scaled down so the outside of the polygon is on the border edge, not the inside!