PhysicsManager¶
from acron.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
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=""]; }- __init__()¶
Default Constructor. NOTE: EulerIntegrator is the standard default.
- add_angular_force()¶
Adds a global angular force to the physics manager
- add_linear_force()¶
Adds a global linear force to the physics manager
- attach_angular_integrator()¶
Hooks an angular integrator into the manager
- attach_linear_integrator()¶
Hooks a linear integrator into the manager
- attach_physical()¶
Registers a Physical class with the manager
- attach_physical_node()¶
use attach_physical_node instead.
Registers a physicalnode with the manager
- attach_physicalnode()¶
use
attach_physical_node()instead.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()¶
Write a string representation of this instance to <out>.
- 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.
- get_viscosity()¶
Get the global viscosity.
- 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()¶
Write a string representation of this instance to <out>.
- remove_angular_force()¶
takes an angular force out of the physics list
- remove_linear_force()¶
takes a linear force out of the physics list
- remove_physical()¶
takes a physical out of the object list
- remove_physical_node()¶
Removes a physicalnode from the manager
- set_viscosity()¶
Set the global viscosity.
- write()¶
Write a string representation of this instance to <out>.
- write_angular_forces()¶
Write a string representation of this instance to <out>.
- write_linear_forces()¶
Write a string representation of this instance to <out>.
- write_physicals()¶
Write a string representation of this instance to <out>.