The Separating Axis Theorem (SAT) is a mathematical method used in collision detection, especially for convex shapes (e.g., polygons, rectangles, circles). The theorem states:
"Two convex shapes do not overlap if and only if there exists an axis along which their projections do not overlap."
To project a point or vector onto an axis (a line in space), you use the dot product.
Make sure you have the following installed on your system:
- Raylib
- CMake (version 3.x or higher)