i've did a pong game but the problem is my ball moves in fixed angles (always 45 degrees up or down) how can i fix this?!? i mean the ball moves by ball.x++ and ball.y++ and not by angles!
i have a struct for the ball so i know i have to add ' float angle ' to the array but how do i determine the launch angle of the ball from the paddle hit?!? please can someone give me the equasion?
(heard it was something with trigonometrical functions)
thx a bunch