O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

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 6. The World in Action: Handling Collisions

Collision detection is a fundamental part of any game. Without it, objects would just pass through each other, finding the right height to place figures above the ground would be very difficult, and checking if a bullet hits its target would be a trial.

To make sure we get a good understanding of collision detection, we'll talk about:

  • Collision basics: Our first collision system
  • Creating inter-cycle collisions
  • Using BitMasks to organize collisions
  • Using PythonTags to get colliding objects
  • Setting up ground collision
  • Overview of additional collision solids and handlers

Covering these topics will allow us to fully understand how the collision system works, and how we can use it.

Collision basics: Our first ...

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