Xbox One Controller Analog Stick Get (Angle/Rotation)?
Hello currently I have an Xbox One controller setup to use in my project. The problem im facing is that the input axis only returns the angles in 45 degree increments. What I want is the return value of where the analog stick is facing from 0 - 360 degrees either precisely or in steps of 10s 5s 1s etc. Currently this is the blueprint logic setup so far.
Hello twinnaz06 ,
Not sure if you already have a solution for this, but I will post what I came up with for you or anyone else that might find it useful.
I used an Atan2(Degrees) node with the axis of the joystick I am measuring as inputs. Below is the Function I made.
Here is the function in use. AttackForward and AttackRight are the axis that I mapped to my controller joystick. I am using it to change the direction that my character is facing, but you should be able to adapt it to your code.
Let me know if this works out for you!
answered Sep 01 '15 at 09:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here