Here is a fairly simple problem, but I am working on a solution:
You have a ball that moves around the screen at velocity from 0 to 10 in 360 degrees. There is a large block in the center of the screen, rectangle shaped.
The question is this: What is the best way to bounce the ball off the rectangle in the center of the screen?? I have already got the IFs down to bounce the ball off the sides of the screen, but that's easy: IF the ball goes out of bounds in one axis, you multiply the velocity by NEGATIVE ONE.
Let me know if you have any ideas,
P.S. This is in 2D.