title: How can I determine whether it's faster to face an object rotating clockwise or counter clockwise?
body: <p>I've been trying this to no avail for some days now, but basically I have some creatures and the player on the screen. What I want to happen is for the enemies to turn to face the player at a variable speed, rather than 'lock' into position and face the player immediately.</p>
  
  <p>What I am trying to do is work out whether it is faster for a given enemy to rotate clockwise or counter clockwise to face the player, but it's proving to be beyond my capabilities with trigonometry.</p>
  
  <p>Example:</p>
  
  <p><img src="https://i.stack.imgur.com/P0aEH.png" alt="enter image description here"></p>
  
  <p><code>x</code> in these figures represents the 'shorter' path and the direction I want to rotate in each situation.</p>
  
  <p>What is the simplest way to work out either 'clockwise' or 'counter-clockwise' in this situation, using any of the following:</p>
  
  <ul>
  <li>The direction the enemy is facing.</li>
  <li>The angle between the enemy to the player, and player to the enemy.</li>
  </ul>