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__()

Default Constructor. NOTE: EulerIntegrator is the standard default.

__init__(param0: PhysicsManager)
addAngularForce(f: AngularForce)None

Adds a global angular force to the physics manager

addLinearForce(f: LinearForce)None

Adds a global linear force to the physics manager

attachAngularIntegrator(i: AngularIntegrator)None

Hooks an angular integrator into the manager

attachLinearIntegrator(i: LinearIntegrator)None

Hooks a linear integrator into the manager

attachPhysical(p: Physical)None

Registers a Physical class with the manager

attachPhysicalNode(p: PhysicalNode)None

Registers a physicalnode with the manager

attachPhysicalnode(p: PhysicalNode)None

Please call attachPhysicalNode() instead.

clearAngularForces()None

Resets the physics manager force vector

clearLinearForces()None

Resets the physics manager force vector

clearPhysicals()None

Resets the physics manager objects vector

debugOutput(out: panda3d.core.ostream, indent: int)None

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

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.

getViscosity()float

Get the global viscosity.

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: panda3d.core.ostream)None

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

removeAngularForce(f: AngularForce)None

takes an angular force out of the physics list

removeLinearForce(f: LinearForce)None

takes a linear force out of the physics list

removePhysical(p: Physical)None

takes a physical out of the object list

removePhysicalNode(p: PhysicalNode)None

Removes a physicalnode from the manager

setViscosity(viscosity: float)None

Set the global viscosity.

write(out: panda3d.core.ostream, indent: int)None

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

writeAngularForces(out: panda3d.core.ostream, indent: int)None

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

writeLinearForces(out: panda3d.core.ostream, indent: int)None

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

writePhysicals(out: panda3d.core.ostream, indent: int)None

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