louisstow/Crafty — Issue #134: Numerical inaccuracy in Polygon.rotate
Author: AlphaXp
Created: 2011-10-15 00:36:06+00:00
State: open

In polygon.rotate the result of the rotation is floored:

current[0] = Math.floor(x);
current[1] = Math.floor(y);

The results of this floor is an accumulated numerical error, that in turn breaks collision detected of rotating objects and other features that rotate polygons.