English subtitles

← Pixel Perfect Collision - HTML5 Game Development

Get Embed Code
4 Languages

Showing Revision 7 created 05/25/2016 by Udacity Robot.

  1. And the answer is 12,960,000 because you have to compare every single pixel in
  2. one image with every single pixel in the other. So it's 72 times 72 times 50
  3. times 50. This is clearly insane, now we only have two objects and we're all
  4. ready doing way, way too much work. So, instead of computing the intersection
  5. between every single pixel and every other pixel in the world, we'll use an
  6. approximation of our pixel shape, which simplifies our collision calculations.
  7. And we'll do this by representing each object as a box and this is called an
  8. access aligned bounding box or AABB for short.