Closed dannyfritz closed 12 years ago
Good catch. Took me a while to figure this one out. It will be fixed in the next commit (which will happen soon). To fix this, add the line
self.centroid = (self.centroid - center):rotate_inplace(angle) + center
to Polygon:rotate() in polygon.lua.
Fixed
It just simply doesn't work with rectangles that aren't rotating around their center.