get the actor with the shortest rotation path
Hi. I'm trying to create a function that gives the character to multiple Locations / Actors and tell it which of them is the shortest rotation on the Z axis.
But I just can not get it, someone can help me?
asked Feb 23 '18 at 04:14 AM in Blueprint Scripting
...if I understand your objective properly, here's something like how I'd approach it:
a. Get Actor Rotation of character/pawn (rotation)... b. Get Actor Location of character/pawn (vector)... c. Get Actor Location of other multiple actors (vector).... d. Find Look At Rotation between char and other actors (rotation).... e. Break out the Z float value of a) and d) and deduct one from the other ... f. Store the result in an array... g. Use Min Of Float Array to identify the shortest rotation...
Follow this question
Once you sign in you will be able to subscribe for any updates here