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 - introducing NodePaths and nodes

To better understand NodePaths, let's go ahead and use the print statement to take a closer look at what's going on.

  1. At the end of the __init__ method in our world class, add this line:
    print(self.track)
    
  2. Make sure it's part of the indented block that makes up the method.
    Time for action - introducing NodePaths and nodes
  3. Save the file as "chp02_04.py" and run it. Look at the command prompt window to see the output of the print statement.
    Time for action - introducing NodePaths and nodes
  4. Note that at the bottom it says "render/Track.egg" in a format that looks just like a file path. That's because "

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