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

Setting up ground collision

Panda3D comes equipped with a special collision handler that is designed to keep characters at a fixed height above the ground, or cause them to slowly fall toward that height if they are too high. Unfortunately, CollisionHandlerFloor doesn't have a component to ensure that our cycle's pitch will match the angle of the track. It's designed for use with a vertical character, such as a person, where that isn't so much of an issue.

To cover this lapse, we're going to construct our own system for ground collision.

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