Finding if two forward vectors face each other

With the dot product of both forward vectors you can get which direction they are facing. If the dot product is greater than 0 both vectors are pointing in the same direction, if the dot product of both forward vectors is less than 0 the two vectors are facing in opposite directions.

4 Likes

Hello,

I am trying to find out if the forward vector of “Actor A” faces towards the forward vector of “Actor B” or if it faces away from it. I just cant seem to figure it out.

1 Like

Exactly what i was looking for. Thank you

1 Like

This helped me 3 years later… Thank you!

1 Like