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 - manipulating NodePaths

Let's try using the setPos method to move our model around.

  1. Change your .py file to look like this:
    Time for action - manipulating NodePaths
  2. Save the file as "chp02_06.py" and run it.
Time for action - manipulating NodePaths

What just happened?

The camera didn't start inside the track this time. That's because we moved the track 5 units down on the z axis. NodePath manipulation is pretty easy, but also very important. Let's do some more to get the hang of it.

Have a go hero - more NodePath manipulation

We should do some more manipulations with the NodePath. Try using the other methods we mentioned ...

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