API Reference

The Panda3D Python API consists of two packages: the panda3d core library, which is written in C++, and the direct library, which is written in Python. This section of the documentation aims to give a complete overview of all the classes and functions defined in these two libraries.

panda3d - Core library

panda3d._rplight

panda3d.ai

panda3d.bullet

panda3d.core

panda3d.direct

panda3d.dtoolconfig

Alias of panda3d.interrogatedb.

panda3d.egg

panda3d.fx

panda3d.interrogatedb

panda3d.ode

panda3d.physics

panda3d.skel

panda3d.vision

panda3d.vrpn

direct - Python support library

DIRECT is a set of Python-based tools that are layered on top of core Panda3D, which is written in C++. It includes the DirectGUI tools, the task system, the Interval system, a high-level class for animated characters, and several other systems.

There are additional C++ classes to support these modules, which can be found in the panda3d.direct module.

direct.actor

This package contains the Actor class as well as a distributed variant thereof.

direct.cluster

direct.controls

This package contains various types of character controllers, handling basic control mechanics and setting up collisions for them.

direct.directbase

This package contains modules to quickly set up a Panda environment for quick prototyping in the interactive Python shell.

direct.directdevices

This package contains a high-level interface for VRPN devices.

direct.directnotify

This package contains notification and logging utilities for Python code.

direct.directtools

This package contains the DIRECT tools, a set of tkinter tools for exploring and manipulating the Panda3D scene graph. By default, these are disabled, but they can be explicitly enabled using the following PRC configuration::.

direct.directutil

This package contains assorted utility classes.

direct.dist

This package contains tools to help with distributing Panda3D applications.

direct.distributed

This package contains an implementation of the Distributed Networking API, a high-level networking system that automatically propagates changes made on distributed objects to interested clients.

direct.extensions_native

This package contains various Python methods that extend some of Panda's underlying C++ classes.

direct.filter

This package contains functionality for applying post-processing filters to the result of rendering a 3-D scene.

direct.fsm

This package contains implementations of a Finite State Machine, an abstract construct that holds a particular state and can transition between several defined states.

direct.gui

This package contains the DirectGUI system, a set of classes responsible for drawing graphical widgets to the 2-D scene graph.

direct.interval

This package contains the Python implementation of the interval system, which is a mechanism for playing back scripted actions.

direct.motiontrail

This package contains only the MotionTrail class.

direct.p3d

This package provides the Python interface to functionality relating to the Panda3D Runtime environment.

direct.particles

This package contains the high-level Python interface to the particle system.

direct.physics

direct.showbase

This package contains .ShowBase, an application framework responsible for opening a graphical display, setting up input devices and creating the scene graph.

direct.showutil

direct.stdpy

This package contains various modules that provide a drop-in substitute for some of the built-in Python modules.

direct.task

This package contains the Python interface to the task system, which manages scheduled functions that are executed at designated intervals.

direct.tkpanels

This package provides various GUI panels useful during Panda3D development written using the Tkinter framework.

direct.tkwidgets

This package provides various Tkinter widgets.

direct.wxwidgets