How does it work?
Because I made a class called Unit with a parent of Rectangle.
I’m trying to have it so that when you drag the mouse, it would create a
Rectangle, and I would test it to see if it intersects with Unit.
I did that, but for some reason, Java wouldn’t detect if the Unit intersects or not.
???
Could somebody help?
EDIT: I solved it.