In my breakout game, I have a slight problem with the direction...
When the ball comes towards the ball, lets say with f(x)=-2x, and the ball hits the paddle on the far most left side, I want the ball to go back in the same direction, but I have found that kinda tricky! :D
Anyone know how to do this???
I know it has something to do with inverse function....But how to express it, I dont know....
