Hi,
this applies to either J2D or slick. In my tetris based game, I want to use a Polygon instance to perform collision detection. This seems the easiest way to achieve collision detection. The problem I have is how do manage collisions when the piece has rotated since you need to rotate the polygon that represents the piece? From the APIs and to my knowledge you can perform rotations only to drawn shapes. What I’d like to do is some sort of the following:
Polygon p = new Polygon();
...
// add polygon coordinates
...
p.rotate(radius);
Thanks!