if I have some rectangular sprite and im checking collision against that with the player, but if after that rectangular is rotated what can I do to check the collision against that rotated rectangle now?
Is just the picture of the sprite rotating? Or the entire object? If you’re using pictures, and not just a straight java drawn rectangle you should be able to just check the collision normally as long as you’re just rotating the graphics context from the center of the object. If you’re trying to check a straight java drawn rectangle, I think you will need to rotate it around the center point (so the x,y positions are the same as if it was not rotated), and you can check collisions normally. However, if you’re rotating the rectangle FROM the x,y axis, that might make your hit box off coordinate, hence not checking the collision correctly.