How to compare two rotations?
I need to return a float value that tells me just how much alike two rotations are. In other words: How accurate they are to each other.
For example: If both rotations are exactly the same, then the max float value will be returned. If both rotations are the exact opposite of one another, then the min float value will be returned. If rotator A is just a little different from rotator B, then the float value will return just a little below the max value. Etc.
Thanks in advance. ^^
asked Jun 23 '17 at 12:47 AM in Blueprint Scripting
if my math is right this code should return something from 0 to 1 where 0 is opposite rotation and 1 is exactly the same rotation, you need low result for equal and high result for different, just do 1-result of the division, it will do what you want, hope it helps. Try this:
answered Jun 23 '17 at 02:37 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here