I've just implemented collision detection using SAT and this article as reference to my implementation. The detection is working as expected but I need to know where both rectangles are colliding.
I need to find the center of the intersection, the black point on the image above. I've found some articles about this but they all involve avoiding the overlap or some kind of velocity, I don't need this.
I just need to put a image on top of it. Like two cars crashed so I put an image on top of the collision. Any ideas?
The information I've about the rectangles are the four points that represents them, the
lower right and
lower left coordinates. I'm trying to find an algorithm that can give me the intersection of these points.