Platform Compatibility
PC | Mac OSX | Oculus Quest |
---|---|---|
X | X | X |
Decide the fastest way to reach an angle, 0 for angles matching, 1 for clockwise, -1 for counter clockwise
Parameters:
- currentAngle
- A float value
- targetAngle
- A float value
returns a Float (decimal number) value
Example:
1 | obj.dirToAngle(currentAngle, targetAngle) |