+ def determine_ray_polys(self, space):
+ x, y = self.position
+ return [pymunk.Poly(self.body, [
+ self.position, [x + 50, y], [x, y + 50]])]
+
+ def render(self, surface):
+ for shape in self.body.shapes:
+ pygame_poly = [
+ pymunk.pygame_util.to_pygame(v, surface) for v in
+ shape.get_vertices()]
+ pygame.draw.polygon(surface, (255, 255, 255), pygame_poly)
+