I'm really trying to understand some seemingly basic stuff here and having a hard time. I have pressed myself to read read read about this but with my knowledge gap everything looks like it starts out on chapter 30.
I have a 2D ball on the screen. I have the following variables for the ball: X, Y, Angle, and Velocity. I set the angle and give it a velocity. I then calculate the X and Y on update like this:
I have a paddle to strike said ball, but the angle of paddle will change based on user input. I know the angle of the paddle, but how do I calculate the new angle of the ball after it collides?
|