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
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.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more