I'm trying to make a simple game in libGDX. The main sprite is a submarine, that can rotate by its center origin (width/2,height/2).
This sprite is the only one that will spin in my game and also the only one that will need a polygon, for the rest of the sprites a rectangle bounding box is enough. I need to create a polygon, so I can handle intersections. The polygon would be a very simple one, with only 8 vertices.
How can I get the vertices of the polygon, if I know the position of the sprite, rotation, and origin?
This image can explain exactly what I want: