panda3d.physics.PhysicsManager

from panda3d.physics import PhysicsManager
class PhysicsManager

Physics don’t get much higher-level than this. Attach as many Physicals (particle systems, etc..) as you want, pick an integrator and go.

Inheritance diagram

Inheritance diagram of PhysicsManager

__init__() → None

Default Constructor. NOTE: EulerIntegrator is the standard default.

__init__(param0: PhysicsManager) → None
attachLinearIntegrator(i: LinearIntegrator) → None

Hooks a linear integrator into the manager

attachAngularIntegrator(i: AngularIntegrator) → None

Hooks an angular integrator into the manager

attachPhysical(p: Physical) → None

Registers a Physical class with the manager

attachPhysicalnode(p: PhysicalNode) → None

Please call attach_physical_node instead.

attachPhysicalNode(p: PhysicalNode) → None

Registers a physicalnode with the manager

addLinearForce(f: LinearForce) → None

Adds a global linear force to the physics manager

addAngularForce(f: AngularForce) → None

Adds a global angular force to the physics manager

clearLinearForces() → None

Resets the physics manager force vector

clearAngularForces() → None

Resets the physics manager force vector

clearPhysicals() → None

Resets the physics manager objects vector

setViscosity(viscosity: float) → None

Set the global viscosity.

getViscosity() → float

Get the global viscosity.

removePhysical(p: Physical) → None

takes a physical out of the object list

removePhysicalNode(p: PhysicalNode) → None

Removes a physicalnode from the manager

removeLinearForce(f: LinearForce) → None

takes a linear force out of the physics list

removeAngularForce(f: AngularForce) → None

takes an angular force out of the physics list

doPhysics(dt: float) → None

This is the main high-level API call. Performs integration on every attached Physical.

doPhysics(dt: float, p: Physical) → None

This is the main high-level API call. Performs integration on a single physical. Make sure its associated forces are active.

initRandomSeed() → None

One-time config function, sets up the random seed used by the physics and particle systems. For synchronizing across distributed computers

output(out: ostream) → None

Write a string representation of this instance to <out>.

writePhysicals(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.

writeLinearForces(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.

writeAngularForces(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.

write(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.

debugOutput(out: ostream, indent: int) → None

Write a string representation of this instance to <out>.