vivarium.library.pymunk_multibody module¶
-
class
vivarium.library.pymunk_multibody.
PymunkMultibody
(config)[source]¶ Bases:
object
Multibody object for interfacing with pymunk
-
defaults
= {'agent_shape': 'segment', 'angular_damping': 0.8, 'barriers': False, 'bounds': [20, 20], 'damping': 0.5, 'elasticity': 0.9, 'force_scaling': 100.0, 'friction': 0.9, 'initial_agents': {}, 'jitter_force': 0.001, 'physics_dt': 0.001, 'screen': None}¶
-
get_shape
(boundary)[source]¶ shape documentation at: https://pymunk-tutorial.readthedocs.io/en/latest/shape/shape.html
-
-
vivarium.library.pymunk_multibody.
corner_from_center
(width, length, center_position, angle)[source]¶