O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Collision Effects

Not only can collisions prevent objects from going through one another, but you can create all sorts of effects when two objects collide with one another. When two cars collide or a bullet hits an object, you don’t just want them to slide off one another; you want them to explode, leave a mark, or disappear. In this section, we will examine different collision effects that we can create when two objects collide. To create our collision effects, we’ll use the Count Collisions command. This command will count how many times an object you specify has collided with another object.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required