|Note: This feature is for ZScript only.|
double deltaangle (double angle1, double angle2)
Used to find the angular difference between two angles, because raw actor angles may not always be normalized. For example, the player's angle variable can return inconsistent results if the player has turned a complete circle.
- angle1: The first angle to be compared.
- angle2: The angle to be subtracted from the first.
- The difference between the two angles, normalized to between [-180,180].