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
apply_angular_impulse(self: Body, impulse: float, wake: bool = True) None
apply_force(self: Body, force: b2Vec2, point: b2Vec2, wake: bool = True) None
apply_force_to_center(self: Body, force: b2Vec2, wake: bool = True) None
apply_linear_impulse(self: Body, impulse: b2Vec2, point: b2Vec2, wake: bool = True) None
apply_linear_impulse_to_center(self: Body, impulse: b2Vec2, wake: bool = True) None
apply_torque(self: Body, torque: float, wake: bool = True) None
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.

  1. create_fixture(self: b2d._b2d.Body, shape: b2Shape, density: float = 1.0) -> b2Fixture

  2. create_fixture(self: b2d._b2d.Body, fixtureDef: PyDefExtender<b2FixtureDef>) -> b2Fixture

create_fixtures_from_shapes(shapes, density=1.0)
create_polygon_fixture(box=None, **kwargs)
destroy_fixture(self: Body, fixture: b2Fixture) None
property enabled
property fixed_rotation
property fixtures
get_linear_velocity_from_local_point(self: Body, local_point: b2Vec2) b2Vec2
get_linear_velocity_from_world_point(self: Body, world_point: b2Vec2) b2Vec2
get_local_point(self: Body, world_point: b2Vec2) b2Vec2
get_local_vector(self: Body, world_vector: b2Vec2) b2Vec2
get_world_point(self: Body, local_point: b2Vec2) b2Vec2
get_world_vector(self: Body, local_vector: b2Vec2) b2Vec2
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
reset_mass_data(self: Body) None
shape_iter()
property sleeping_allowed
property transform
property type
property user_data
property world
property world_center

Joint Defs:

class b2d.DistanceJoint
property damping
property length
property stiffness
class b2d.FrictionJoint
property max_force
property max_torque
class b2d.GearJoint
property joint_1
property joint_2
class b2d.MouseJoint
property damping
property max_force
property stiffness
property target
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.WeldJoint
property damping
property reference_angle
property stiffness
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.GearJointDef
property joint_1
property joint_2
property ratio
class b2d.MouseJointDef
property damping
property max_force
property stiffness
property target
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
class b2d.WeldJointDef
property damping
property local_anchor_a
property local_anchor_b
property reference_angle
property stiffness
class b2d.WheelJointDef
property damping
property enable_limit
property enable_motor
property local_anchor_a
property local_anchor_b
property local_axis_a
property lower_translation
property max_motor_torque
property motor_speed
property stiffness
property upper_translation