Gilbert-Johnson-Keerthi 2D Collision Detection

I’ve been trying to learn how collision detection works; this lead me to the Gilbert-Johnson-Keerthi (GJK) algorithm.
All code samples in this post are in TypeScript. The code samples make use of some structures I have created and won’t detail in this post, but they are simple and you can see them in the GitHub repo:

  • Vector
  • IShape
  • Collision
Read More