I'm using Java Rectangles in my game in order to check collision between objects (using the intersects()
method). As far as I know, this cannot be done if one of the objects is rotated.
Say, for example, one of the objects in the game is rotated 65°. How would I go about checking collision on this object? Is there a way I can add rotation to its Rectangle? If not, is there a way I can check collision without using Rectangles (using e.g. pixel colors)?