Method needed

Rainther

I guess I should write something of value here...
Reaction score
61
Hey hey.

Solved:D
My AI is up and running and funny as hell

I'm in the need of an efficient method to determine which angle that's the closiest of. The scenario is that I have one unit's facing angle, the angle between this unit and the target and need to determine which one of the angle between them ( + 90 degreess or - 90 degrees ) that is the closiest one.

The reason I need this is because I'm making a battle ship system and are trying to make an AI to focus enemy ships. However it's only able to attack from the sides with it's cannons so I'll also make a system later on to fire once the right degree is there.
Anyhow... I believe this could be solved with a simple formula, however I don't know the useage of rads for example.
 
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