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

Overview of additional collision solids and handlers

Panda3D offers many more options for collision solids and handlers than we used in this chapter. Most of these have specific uses that won't apply to our game, but we should talk about them briefly so we know when to use them.

Collision solids

The different collision solids in Panda3D are:

  • CollisionSphere— A simple sphere, the most basic collision solid. This solid is excellent as both a From object and an Into object. A sphere is defined by a position and a radius.
    • mySolid = CollisionSphere([posX], [posY], [posZ], [radius])
  • CollisionTube— A tube is formed by a cylinder with hemispherical end caps. This shape is sometimes referred to as a capsule. The tube is only suitable for use as an Into 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