Answers for "x angle oes back after 90 unity"

C#
0

x angle oes back after 90 unity

public static float CalcEulerSafeX(float x)
     {
         if (x >= -90 && x <= 90)
             return x;
         x = x % 180;
         if (x > 0)
             x -= 180;
         else
             x += 180;
         return x;
     }
Posted by: Guest on June-16-2020

C# Answers by Framework

Browse Popular Code Answers by Language