Skip to main content
gamedev.net
🔒 Locked

simple problem

Started by treeway 1 reply 350+ views
Original Post
treeway
treeway
Hi ive got the input from an analog stick in the range of -1 to 1 on the x and y axis but how do i convert this x,y value to the angle at which the stick is rotated? thanks
_Sauce_
_Sauce_
I'm just taking a stab in the dark here, but I think you can use tan to convert a gradient (change in Y / change in X) into an angle. thats all I've got. I would give some examples but then i would probably prove myself wrong, so im gonna let you do that.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.