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

Time for action - understanding parent child inheritance

To better understand how children inherit properties from their parents, we're going to add two more models to our scene and see how they mingle.

  1. We need to add six more lines of code to our file in order to load two more models, add them to the Scene Graph, and position them in view:
    Time for action - understanding parent child inheritance
  2. Save the file as "chp02_07.py" and run it.
    Time for action - understanding parent child inheritance
  3. The cycles look like white blobs because they are untextured and unlit. We don't need to worry about that right now. Next, let's parent the second cycle to the first, instead ...

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