Finding out from which direction a vector is approaching another vector

Best way to do this is to create a LookAt vector from original object to the second object. Then do a dot product test between this new LookAt vector and the original object’s Right vector (GetRightVector()).

Use the return value, a float, to determine which side the second object is on. If its less than 0 its on the left side, if its greater than 0 its on the right side.

1 Like