[real1]: Unit A facing angle
[real2]:Angle between Unit A and Unit B
What i need is that if Unit A faces Unit B with a max differnce of 8 degrees Then Boolean = True
Else Boolean = False
I tought it would be very easy, but the angles both work different
For the Units facing angle the angle works as following:
---------------------------- 270 degrees
180 degrees -------------------------------------0 degrees
---------------------------- 90 degrees
While for the angle between points is calculated as:
----------------------------------- -90
-0 ----------------------------------------------------------- -180
0 ------------------------------------------------------------- 180
------------------------------------- 90
Hopefully you understand. Else il try to explain with paint
[real2]:Angle between Unit A and Unit B
What i need is that if Unit A faces Unit B with a max differnce of 8 degrees Then Boolean = True
Else Boolean = False
I tought it would be very easy, but the angles both work different
For the Units facing angle the angle works as following:
---------------------------- 270 degrees
180 degrees -------------------------------------0 degrees
---------------------------- 90 degrees
While for the angle between points is calculated as:
----------------------------------- -90
-0 ----------------------------------------------------------- -180
0 ------------------------------------------------------------- 180
------------------------------------- 90
Hopefully you understand. Else il try to explain with paint