Finding the "move vector"

At 6:33, Sam talks about how you can find the “move vector” by adding and multiplying the X and Y values appropriately. If this is confusing, this might help.

Begin by determining the X values of all 3 Vectors:

A: (7,-1)
B: (0, 2)
C: (-3, 2)

So we have the values
A = 7
B = 0
C = -3

Then we just plug those values into the equation:
A + (3 * B) - C
7 + (3 * 0) - -3 = 10.

Move Vector = (10, ?)

So we have solved for X, now do the same for the Y:

A: ( 7 ,-1)
B: ( 0 , 2)
C: ( -3 , 2)

A: -1
B: 2
C: 2

A + (3 * B) - C
-1 + (3 * 2) - 2 = 3

Finally we have:
Move Vector = (10,3)

2 Likes

Magnitude is a scalar value, not a vector.

It can be found by applying the standard distance formula derived from the Pythagorean Theorem e.g. sqrt(dx*dx + dy*dy).

Thanks for the correction, I got confused. What I explained is the “move vector” mentioned in the video and not the magnitude. I’ll fix my post as not to confuse anyone.

So as a follow up question for you @SteveMerritt, when would someone use this “move vector” in practice?

A couple examples off the top of my head:

  • Finding the distance to a target location
  • Finding the direction towards a target location
  • Finding the angle between an object’s current heading and a target location
  • Calculating line of sight to a target
1 Like

Privacy & Terms