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

Chapter 12: Finishing Touches: Getting the Game Ready for the Customer

Garbage collection

Question number

Answer

1

  • Call removeNode() on all NodePaths in the scene graph
  • Clean out collision systems
  • Call delete() on all Actors
  • Call destroy() on all DirectGui objects
  • Set all Intervals, Sequences, and Parallels equal to None
  • Detach all 3D sounds connected to class NodePaths
  • End all tasks running in the class
  • If the custom class inherits from DirectObject, call self.ignoreAll()
  • Remove all direct references to the custom class instance

2

removeCollider is only necessary when the CollisionTraverser and/or CollisionHandler aren't being removed.

Using a custom mouse cursor

Question number

Answer

1

We use setBin() to ensure that the mouse cursor geometry ...

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