Answers for "Get the difference between rotations"
https://answers.unrealengine.com/questions/336846/get-the-difference-between-rotations.html
The latest answers for the question "Get the difference between rotations"Answer by Matthew J
https://answers.unrealengine.com/answers/336957/view.html
Hello Alex,
Have you considered converting the values into Radians and doing the math that way? This way everything will be measured in fractions and multiples of Pi.
If you need to compare a rotation of 1 and 359 degrees, where the difference is 2, you would need to subtract 1 from 359, which would give you 358. This is obviously not correct unless you have a restriction on passing 360 and resetting. In this case, you can have a condition to check the difference and see if it is over 180. If it is, subtract 360 from it and get the absolute value of the new difference. This will result in 2. This should all be converted to Radians if you want pin-point accuracy though.
Hope this helps!Fri, 20 Nov 2015 19:54:25 GMTMatthew J