Hey guys.(!!Caution. Newbie-altert!!) I know that there are some threads about the virtual joystick input for android out there and i tried some but it havent worked so far… now i ask you. I want to log the angle of the joystick and make a rigidbody rotate then. looks like this :
var angleX = maxX*Input.GetAxis("Right Joystick X");
var angleY = maxY*Input.GetAxis("Right Joystick Y");
Debug.Log (angleX+"/"+angleY);
rigidbody.AddRelativeTorque (angleY, angleX, 0);
My problem is that the joystick dont give any input. i have also set up the “Right Joystick X” and Y in the Inputmanager but it still does not work. (Type: Joystick Axis ; Axis: X axis ; Joy Num: all Joysticks).
have i missed something? I am trying to get it running for over 5 hours now
Hope someone can help me. If you need more information tell me.