Right now I am coding a Pinball clone in ActionScript (actually in this case the language doesn't matter). I have the following problem: I have two paddles and a ball moving with a certain speed (represented as a velocity vector). I can't figure out how to calculate the new velocity vector of the ball after hitting the paddle. All my calculations are going terribly wrong.
What I have: Current angle of the paddle (in radians), the velocity vector of my ball and the current angle (in radians) of that vector where 1,5708 (90 degrees) is straight down (e.g. velocity vector with x = 0 and y = 5).
Does anyone have an idea how to approach this. The programming language doesn't matter here - pseudo code is also fine.