pyb2d
World:
- class b2d.World(gravity)
- property bodies
- property body_list
- create_body(*args, **kwargs)
- create_box_body(box, density=None, **kwargs)
- create_distance_joint(*args, **kwargs)
- create_dynamic_body(**kwargs)
- create_friction_joint(*args, **kwargs)
- create_gear_joint(*args, **kwargs)
- create_kinematic_body(**kwargs)
- create_mouse_joint(*args, **kwargs)
- create_prismatic_joint(*args, **kwargs)
- create_pully_joint(*args, **kwargs)
- create_revolute_joint(*args, **kwargs)
- create_static_body(**kwargs)
- create_weld_joint(*args, **kwargs)
- create_wheel_joint(*args, **kwargs)
- find_body(pos, margin=0.001)
- find_closest_n_bodies(pos, r, r_fixture=None, n=None, body_filter=None)
- find_fixture(pos, margin=0.001)
- property joint_list
- property joints
- query_aabb_callback(**kwargs)
- set_destruction_listener(listener)
Body:
- class b2d.Body
- property active
- property angle
- property angular_damping
- property angular_velocity
- property awake
- property btype
- property bullet
- create_chain_fixture(vertices, prev_vertex, next_vertex, density=1, friction=0.2)
- create_circle_fixture(radius, density=1, friction=0.2)
- create_fixture(*args, **kwargs)
Overloaded function.
create_fixture(self: b2d._b2d.Body, shape: b2Shape, density: float = 1.0) -> b2Fixture
create_fixture(self: b2d._b2d.Body, fixtureDef: PyDefExtender<b2FixtureDef>) -> b2Fixture
- create_fixtures_from_shapes(shapes, density=1.0)
- create_polygon_fixture(box=None, **kwargs)
- property enabled
- property fixed_rotation
- property fixtures
- property gravity_scale
- property has_object_user_data
- property inertia
- property joints
- property linear_damping
- property linear_velocity
- property local_center
- property mass
- property mass_data
- property next
- property position
- property report_contact_filter
- shape_iter()
- property sleeping_allowed
- property transform
- property type
- property user_data
- property world
- property world_center
Joint Defs:
- class b2d.PrismaticJoint
- property enable_limit
- property enable_motor
- property is_limit_enabled
- property joint_speed
- property joint_translation
- property lower_limit
- property max_motor_force
- property motor_speed
- property reference_angle
- set_limits(self: PrismaticJoint, arg0: float, arg1: float) None
- property upper_limit
- class b2d.RevoluteJoint
- property enable_limit
- property enable_motor
- get_motor_torque(self: RevoluteJoint, iv_dt: float) float
- property joint_angle
- property joint_speed
- property lower_limit
- property max_motor_torque
- property motor_speed
- property reference_angle
- set_limits(self: RevoluteJoint, arg0: float, arg1: float) None
- property upper_limit
- class b2d.WheelJoint
- property damping
- property enable_limit
- property enable_motor
- get_motor_torque(self: WheelJoint, iv_dt: float) float
- property joint_angle
- property joint_angular_speed
- property joint_linear_speed
- property joint_translation
- property lower_limit
- property max_motor_torque
- property motor_speed
- set_limits(self: WheelJoint, arg0: float, arg1: float) None
- property stiffness
- property upper_limit
Joints Defs:
- class b2d.DistanceJointDef
- property damping
- property length
- property local_anchor_a
- property local_anchor_b
- property max_length
- property min_length
- property stiffness
- class b2d.FrictionJointDef
- property local_anchor_a
- property local_anchor_b
- property max_force
- property max_torque
- class b2d.PrismaticJointDef
- property enable_limit
- property enable_motor
- property local_anchor_a
- property local_anchor_b
- property local_axis_a
- property lower_translation
- property max_motor_force
- property motor_speed
- property reference_angle
- property upper_translation
- class b2d.RevoluteJointDef
- property collide_connected
- property enable_limit
- property enable_motor
- property local_anchor_a
- property local_anchor_b
- property lower_angle
- property max_motor_torque
- property motor_speed
- property reference_angle
- property upper_angle