GetRelativeAngle
Revision as of 17:47, 29 August 2015 by imported>Chesko
Returns a value corresponding to the difference, in degrees, between the angle of the subject and the angle of the target along the specified axis.
Examples
If Foo has a Z angle of 115, and Bar has a Z angle of 120, Bar.GetRelativeAngle(Foo, Z) would return 5.0.
If Foo has a Z angle of 90, and Bar has a Z angle of 85, Bar.GetRelativeAngle(Foo, Z) would return 355.0.
Notes
- As shown in the example above, this function does not return negative relative angles, it rolls over to 359.9 and counts downward instead.