IOCT Masters in Creative Technogies
Major Project
An augmented reality game based on "Breakout"

Wednesday 2 July 2008

Brick collision

To create the collision detection on the bricks, I need to calculate a number of collision detection circumstances, these include:
  • ball travelling from below, hits base of brick
  • ball travelling from above, hits top of brick
  • ball travelling from below, hits right side of brick
  • ball travelling from below, hits left side of brick
  • ball travelling from above, hits right side of brick
  • ball travelling from above, hits left side of brick