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

Creating a Collision

The Collisions command is used in Blitz3D to define how objects will collide with one another. There are five different things that you must specify when creating collisions:

  • Source Type. The source type tells Blitz3D which object it should watch for that might collide into something else. Typically, this is the player or players in your game. In the example we are going to use below, we will create a sphere that will collide with a cone. In this example, the sphere would be the source type.

  • Destination Type. This is the object that is being collided into. In the example, the cone acting as our object to smash into will be the destination type.

Figure 11.1 illustrates the difference between a Source type and a Destination ...

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