Question by 
               moeinsorosh96 · Apr 19, 2020 at 10:47 PM · 
                touchtouch controlstouchscreentouchphasetouchcount  
              
 
              How to convert Input.GetAxis(MouseAxis.MOUSE_Y), Input.GetAxis(MouseAxis.MOUSE_X) for touch
Hi three i'm a newbie and i want to create a fps shooter game for android here is my script and i got every thing covered up until now , i have to add the camera rotation and i've tried everything on YouTube and here and i'm going nuts :( , how could it be so hard here is my script it works fine with mouse but i want it to work with touch screen void Look() {
     current_Mouse_Look = new Vector2(
         Input.GetAxis(MouseAxis.MOUSE_Y), Input.GetAxis(MouseAxis.MOUSE_X));
     look_Angles.x += current_Mouse_Look.x * sensivity * (invert ? 1f : -1f);
     look_Angles.y += current_Mouse_Look.y * sensivity;
     look_Angles.x = Mathf.Clamp(look_Angles.x, default_Look_Limits.x, default_Look_Limits.y);
    
     lookRoot.localRotation = Quaternion.Euler(look_Angles.x, 0f, 0f);
     playerRoot.localRotation = Quaternion.Euler(0f, look_Angles.y, 0f);
 }
 
               it would mean the world to me if you could help me to convert this code thanks in advance.
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
TouchPhase.Began hold problem 0 Answers
Disable Input.getTouch in full screen 0 Answers
ScreenToWorldPoint on One Axis? 0 Answers
iOS touch delay? 0 Answers
New input system and touch on webgl 1 Answer