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
digraph inheritance42d667294e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "PhysicsManager" [URL="acron.physics.PhysicsManager.html#acron.physics.PhysicsManager",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "PhysicsManager" [arrowsize=0.75,style=""]; }- PhysicsManager.__init__()¶
Default Constructor. NOTE: EulerIntegrator is the standard default.
- PhysicsManager.add_angular_force()¶
Adds a global angular force to the physics manager
- PhysicsManager.add_linear_force()¶
Adds a global linear force to the physics manager
- PhysicsManager.attach_angular_integrator()¶
Hooks an angular integrator into the manager
- PhysicsManager.attach_linear_integrator()¶
Hooks a linear integrator into the manager
- PhysicsManager.attach_physical()¶
Registers a Physical class with the manager
- PhysicsManager.attach_physical_node()¶
use attach_physical_node instead.
Registers a physicalnode with the manager
- PhysicsManager.attach_physicalnode()¶
use
attach_physical_nodeinstead.Please call
attach_physical_nodeinstead.
- PhysicsManager.clear_angular_forces()¶
Resets the physics manager force vector
- PhysicsManager.clear_linear_forces()¶
Resets the physics manager force vector
- PhysicsManager.clear_physicals()¶
Resets the physics manager objects vector
- PhysicsManager.debug_output()¶
Write a string representation of this instance to <out>.
- PhysicsManager.do_physics()¶
This is the main high-level API call. Performs integration on every attached Physical.
This is the main high-level API call. Performs integration on a single physical. Make sure its associated forces are active.
- PhysicsManager.get_viscosity()¶
Get the global viscosity.
- PhysicsManager.init_random_seed()¶
One-time config function, sets up the random seed used by the physics and particle systems. For synchronizing across distributed computers
- PhysicsManager.output()¶
Write a string representation of this instance to <out>.
- PhysicsManager.remove_angular_force()¶
takes an angular force out of the physics list
- PhysicsManager.remove_linear_force()¶
takes a linear force out of the physics list
- PhysicsManager.remove_physical()¶
takes a physical out of the object list
- PhysicsManager.remove_physical_node()¶
Removes a physicalnode from the manager
- PhysicsManager.set_viscosity()¶
Set the global viscosity.
- PhysicsManager.write()¶
Write a string representation of this instance to <out>.
- PhysicsManager.write_angular_forces()¶
Write a string representation of this instance to <out>.
- PhysicsManager.write_linear_forces()¶
Write a string representation of this instance to <out>.
- PhysicsManager.write_physicals()¶
Write a string representation of this instance to <out>.