1.) Overview
2.) Point On or Off Screen
3.) Point in Rectangle
4.) Rectangle in Rectangle
5.) Point in Circle
6.) Circle in Circle

 

Overview

What is Collision Detection?

Code.
That you write.
Run it when you want to see if 2 objects are hitting one another.

  • Bullets hit your hero
  • Ball bounces offscreen
  • Mario hits a block of bricks
  • Tetris blocks stop falling once they hit bottom

Next >>