Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?
Both of those formula didn't work exactly But I got it to work. I only needed horizontal and vertical bouncing so mine was pretty easy.
For the horizontal it was: Ball_Angle = (Obstacle_Angle * 2) - Ball_Angle
For the vertical it was: Ball_Angle = (Obstacle_Angle * 2) - Ball_Angle-180
Assault Andy Administrator
I make other people create vaporware
12th May, 2010 at 00:41:19 -
What Sketchy and Sumo both said is exactly correct. The main problem is working out the object angle. For vertical and horizontal walls it's easy, but if you want anything more complicated, such as ramps/slopes/curves then you should look into using one of the physics extensions, such as Box2D.