Finding if two forward vectors face each other
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.
asked Aug 12 '17 at 09:12 PM in Blueprint Scripting
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.
answered Aug 12 '17 at 10:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here