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

Appendix C. Pop quiz - Answers

The answers to the pop quizzes from each chapter are provided here for your reference. How did you score?

Chapter 2: Creating the Universe: Loading Terrain

Starting Panda3D and loading models

Question number

Answer

1

import direct.directbase.DirectStart

2

All methods in Panda3D are passed as a reference to the class instance they are called on. We call this reference self so we know that it points to the class instance that owns the method.

3

By giving it the keyword name __init__ we ensured that the method would be called when an instance of the class is created.

4

import direct.directbase.DirectStart created the loader object.

5

It searched along the path we gave it, starting from the folder where the ...

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