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.
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.
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.
Exactly what i was looking for. Thank you
This helped me 3 years later… Thank you!