Welcome, Guest. Please login or register.

Author Topic: Angle of deflection  (Read 3327 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline uncharted

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1520
    • Show all replies
Re: Angle of deflection
« on: August 14, 2007, 03:47:15 PM »
If you're going for simple motion there is an easy shortcut you can take.  If you're doing something like Pong or breakout all you need to do is reverse the delta of horizontal or vertical component.

So if the ball hits the top make the ball start to move down, if it hits the left make it move right.  No need to calculate any angles.

I only say this because years ago I was making a pong type game with complex angle calculations, when someone pointed out that all I needed to do is the above  :oops: