As you’ve progressed through the book, you’ve seen how to make objects move and make them interact with the space they occupy. Now, you’re going to make these objects interact with each other. For the most part, this will involve determining when two objects have touched each other. This is a subject known as collision detection or hit testing.
Unable to display preview. Download preview PDF.