1
General / Re: Rotated Rectangle Collision Implementation
« on: September 07, 2013, 10:09:22 pm »
I had believed that the problem was with the values that I had been inputting, as after I rotated the rectangles, I did not reassign them as top-left, top-right, etc. However, apparently that was not the case, as it still doesn't work, and registers a collision with basically any values.
For example, A (219, 128) (232, 119) (241, 132) (228, 141) and B (246, 246) (254, 246) (246, 254) (254, 254) registers a collision.
So I once again have no idea what's wrong with the code.
For example, A (219, 128) (232, 119) (241, 132) (228, 141) and B (246, 246) (254, 246) (246, 254) (254, 254) registers a collision.
So I once again have no idea what's wrong with the code.