Sign in to follow this  

Converting Analog controller stick values to degrees

This topic is 2663 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.
...180
90.....270
....0

My 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
...-50

I'm not really sure how to approach this. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites

This topic is 2663 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this