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

Chapter 11. Collisions

What’s the first thing you think of when someone says the word “collision”? I think of two cars hurtling down the road at one another and then smashing headon in an impressive display of fireworks, flying metal, and screeching tires. Thankfully, in my vision nobody gets hurt! In Blitz3D, collisions control how two or more objects react with one another. Collisions are an important part of any game since they allow you to control whether your players can bump into walls or go through them. They also prevent players from falling off the edge of the screen, and they tell the computer what type of reaction should happen when two objects meet. By default, when you move one object into another using Blitz3D, the objects will ...

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