Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you add to vectors together, the resulting vector is the equivalent of stacking the vectors end to end. Adding vectors together can be used to simulate simple physics like the effect of wind or gravity, so for every step forward a game character might have a wind vector added to their movement vector. If a character in a game jumps while moving forward, then we also want to add the vectors of the upward movement with the forward motion, and then in reverse when they fall back down.  

a = ( 3, 6)  

b = ( 67, -3 2)

a + b = (910, 35)

Diagram 4.  Vector addition

...