[Solved] Ball sometimes bounces sometimes doesn’t
The code that checks bouncing is off by a bit. First of all, ball.getCenterX()+ball.getRadius() is effectively the right side of the ball, and that’s the only part that you’re comparing to the paddle’s location. That means that the effective paddle location is off by an amount equal to the radius of the ball. You can … Read more