I have the following game:
I have the rectangle collisions ready with the ball and with the tiles. but my problem is when the ball hits the tiles and the bat, what angle should the ball bounce at? How do I determine that?
preguntado el 27 de agosto de 11 a las 18:08
It's not that difficult, if the ball hits a vertical obstacle simply invert its x velocity, if it hits a horizontal obstacle invert its y velocity.