Skip to content

sriramshiyam/SAT-Collision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAT-Collision

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.

$\mathbf{w} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2} \mathbf{v}$

Prerequisites

Make sure you have the following installed on your system:

  • Raylib
  • CMake (version 3.x or higher)

About

sat collision

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published