concepts.simulator.pymunk.body_utils#

Functions

add_ball(world[, mass, radius, pos, kinematic])

add_box(world[, mass, half_length, pos, ...])

add_ground(world[, mass, half_length, pos, ...])

add_polygon(world, vertices[, mass, pos, ...])

add_rectangle(world[, mass, width, height, ...])

Add a rectangle to the world.

add_shape_C(world[, length1, length2, ...])

add_shape_I(world[, length, thickness, pos])

add_shape_L(world[, length1, length2, ...])

add_shape_T(world[, length1, length2, ...])

convex_decomposition(vertices)

get_body_bbox(body)

get_screen_size()

random_body_pos(world, body)

select_body(world, pos[, selectable_bodies])