Calculates the shortest difference between two given angles given in degrees.
#pragma strict public class Example extends MonoBehaviour { function Start() { // Prints 90 Debug.Log(Mathf.DeltaAngle(1080, 90)); } }
using UnityEngine;
public class Example : MonoBehaviour { void Start() { // Prints 90 Debug.Log(Mathf.DeltaAngle(1080, 90)); } }