(self, x, y, r, vector=(-10, 0), fill_color='black', line_color='red')
| 69 | return ball |
| 70 | |
| 71 | def shoot_a_ball(self, x, y, r, vector=(-10, 0), fill_color='black', line_color='red'): |
| 72 | ball = self.add_ball( |
| 73 | x, y, r, fill_color=fill_color, line_color=line_color) |
| 74 | # ball.shape.surface_velocity=10 |
| 75 | ball.body.apply_impulse_at_local_point(100*pymunk.Vec2d(vector)) |
| 76 | |
| 77 | |
| 78 | # ------------------- Build and show the GUI Window ------------------- |
no test coverage detected