- #1
CiElBi
- 2
- 0
I am currently trying to program a simple game in which a ball bounces of a paddle to hit blocks, and the game ends when all the blocks are broken.
However, I know that when the paddle is moving in one direction, when the ball collides with the moving paddle, the ball should bounce of with a change in momentum towards the direction the paddle was heading.
the paddle is not moving towards the ball, only to the right and left, but the paddle has momentum in those directions which transfers to the ball.
My question is what angle and speeds would the ball be reflected at after it collides with the paddle, assuming both have a very low weight, and if there is any formula I could try to base the programming on to make the simulation more accurate.
However, I know that when the paddle is moving in one direction, when the ball collides with the moving paddle, the ball should bounce of with a change in momentum towards the direction the paddle was heading.
the paddle is not moving towards the ball, only to the right and left, but the paddle has momentum in those directions which transfers to the ball.
My question is what angle and speeds would the ball be reflected at after it collides with the paddle, assuming both have a very low weight, and if there is any formula I could try to base the programming on to make the simulation more accurate.