- Home /
C# Xbox One Controller Left Stick Rotation Issues
I've been working on a script for rotating a gameobject with the left stick of an Xbox One controller. It will rotate if I move the left stick along one of the x or y axis. But if I rotate the left stick a full 360 degrees the gameobject's rotation bobs back and forth and not in the direction I'm turning the left stick. I'm guessing this is due to the axes conflicting with each other maybe?
transform.Rotate(0,0, Input.GetAxis("L_XAxis_1") + Input.GetAxis("L_YAxis_1"));
Comment