PhysicsManager
from panda3d.physics import PhysicsManager
- class PhysicsManager
Bases:
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
- __init__()
Default Constructor. NOTE: EulerIntegrator is the standard default.
- __init__(param0: PhysicsManager)
- add_angular_force(f: AngularForce)
Adds a global angular force to the physics manager
- add_linear_force(f: LinearForce)
Adds a global linear force to the physics manager
- attach_angular_integrator(i: AngularIntegrator)
Hooks an angular integrator into the manager
- attach_linear_integrator(i: LinearIntegrator)
Hooks a linear integrator into the manager
- attach_physical_node(p: PhysicalNode)
Registers a physicalnode with the manager
- attach_physicalnode(p: PhysicalNode)
Please call
attach_physical_node()
instead.
- clear_angular_forces()
Resets the physics manager force vector
- clear_linear_forces()
Resets the physics manager force vector
- clear_physicals()
Resets the physics manager objects vector
- debug_output(out: panda3d.core.ostream, indent: int)
Write a string representation of this instance to <out>.
- do_physics(dt: float)
This is the main high-level API call. Performs integration on every attached Physical.
- do_physics(dt: float, p: Physical)
This is the main high-level API call. Performs integration on a single physical. Make sure its associated forces are active.
- init_random_seed()
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)
Write a string representation of this instance to <out>.
- remove_angular_force(f: AngularForce)
takes an angular force out of the physics list
- remove_linear_force(f: LinearForce)
takes a linear force out of the physics list
- remove_physical_node(p: PhysicalNode)
Removes a physicalnode from the manager
- write(out: panda3d.core.ostream, indent: int)
Write a string representation of this instance to <out>.
- write_angular_forces(out: panda3d.core.ostream, indent: int)
Write a string representation of this instance to <out>.
- write_linear_forces(out: panda3d.core.ostream, indent: int)
Write a string representation of this instance to <out>.
- write_physicals(out: panda3d.core.ostream, indent: int)
Write a string representation of this instance to <out>.