External Exam Download Resources Web Applications Games Recycle Bin

Collision Detection



Collision Detection is the problem of detecting in-game when two or more objects intersect (or collide with) eachother. This is important because these collisions usually initialise triggers for (more) game behaviours. There are extensive calculations involved with collision detection in computer games, and because of this, many steps are taken to "optimize" how quickly these collisions can be calculated.

Per Pixel Collision Detection:

Per pixel collision detection checks every pixel in the game object for a "hit":


Hitbox Testing:

For example, Street Fighter 2:


Advantages of Hitbox (over Per Pixel):


Disadvantages of Hitbox solution: