Direction Based Checks

Cloak_Master

Active Member
Reaction score
41
Hello all, I'm currently trying to code a chess type map simple as I can, and it's actually going okay. I finished pawn movement, but I have a little question. Does the trigger for an angle from X point to X point check not operate from 1 to 360 degrees? That appears to be the case. It seems to operate from 0 to 180 and 0 to -180. It's fairly confusing because it reads as 1 to 360 in the editor. Any knowledge on what is actually the case? Thanks.
 
Reaction score
86
Yes the angle between points ranges from -pi - pi (-180 - 180). To fix it just check if the angle is less than 0 and if it is add 360 to it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top