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

Blowing Up Stuff

Have you ever heard the saying “There are many ways to skin a cat”? That saying means that there are different methods to accomplish a specific task, and nowhere is that more true than in creating explosions in Blitz3D. I’m going to show you a simple way to create the illusion of an object blowing up. It will require quite a few lines of code, but I’ll break it down into pieces in order to make it easier to understand.

Imagine a bullet (in this case the bullet will be a simple sphere) hitting an object and causing that object to shatter into a few pieces that fly away. We would accomplish this in a few different steps. The first thing that we would do is have the object (in our example the object will be a cone) disappear when ...

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