Daniel Messias     Archive     About

Polygon-Polygon Collision Detection

An implementation of Seperating Axis Theorem

SAT allows for the testing of a collision between convex polygons by projecting each vertex of both shapes onto the normal of each axis of both shapes. If all the projections overlap, there is a collision.

This demo does not handle any collision physics but rather just checks for the collisions, the initial step in resolving collisions.

Amazing post on implementing this algorithm.