# Ground at bottom ground = pymunk.Segment(space.static_body, (0, HEIGHT-50), (WIDTH, HEIGHT-50), 5) ground.friction = 0.9 space.add(ground)
# Space and physics space = pymunk.Space() space.gravity = (0, 900) draw_options = pymunk.pygame_util.DrawOptions(screen) drive cars down a hill script
for i in range(len(hill_points)-1): segment = pymunk.Segment(space.static_body, hill_points[i], hill_points[i+1], 2) segment.friction = 0.8 segment.elasticity = 0.5 space.add(segment) # Ground at bottom ground = pymunk