Im trying to implement SAT in Python and can't seem to get it working. There is a lot on information on the net but none of it seems to explain the code (at least in a way I can understand) and how to apply SAT if you have points on the cartesian plane.
In my problem, I have two rectangles (which may or may not be on an angle) stored as a list of x and y coordinates.
I.e. I have two lists r1, r2 which contain [x1, y1], [x2, ..... [x4, y4] for each of the two rectangles.
How can I implement code in Python to apply Separating Axis theorem to determine collision?
Any help would be greatly appreciated.