"""
r = int(bounding_radius)
left, right = int(pos.x) - r, int(pos.x) + r
- bottom, top = int(pos.y) + r, int(pos.y) - r
+ bottom, top = int(pos.y) - r, int(pos.y) + r
step = 1
- for y in range(top, bottom + 1, step):
+ for y in range(bottom, top + 1, step):
yield pymunk.Vec2d(left, y)
for x in range(left, right + 1, step):
yield pymunk.Vec2d(x, top)
- for y in range(bottom, top - 1, -step):
+ for y in range(top, bottom - 1, -step):
yield pymunk.Vec2d(right, y)
for x in range(right, left - 1, -step):
yield pymunk.Vec2d(x, bottom)