   Converting Analog controller stick values to degrees
  I'm using a gamepad controller to move an animated character as they run around the map. The goal is to have the character face the direction in which they are moving. So at this point I need to figure out how to take the values read in from the controller and convert them to degrees.This is the order of rotation in my environment....18090.....270....0My controller is capped to the value of 50. Below are the values you would see if pushing the stick in each of the 4 directions.....50-50....50...-50I'm not really sure how to approach this. Any help would be greatly appreciated.   
  If I understand correctly, you want something like "atan2(stick_y, stick_x)"http://en.wikipedia.org/wiki/Atan2However it probably makes more sense to do all of the movement math using vectors, and using the angle to setup the graphics.   ;  That worked! Just what I was looking for.[Edited by - howie_007 on September 2, 2010 5:45:55 PM]