- Home /
 
 
               Question by 
               Sehoon KIM · Jun 18, 2014 at 08:24 AM · 
                mouse  
              
 
              To view sky, Rotate with Mouse Y?
void Update () { h = Input.GetAxis("Horizontal"); v = Input.GetAxis("Vertical");
     Vector3 moveDir = new Vector3(h, 0, v);
     tr.Translate(moveDir * Time.deltaTime * moveSpeed , Space.Self);
     tr.Rotate(Vector3.up * Time.deltaTime * rotSpeed * Input.GetAxis("Mouse X"));
 
               }
tr.Rotate(Vector3.up Time.deltaTime rotSpeed * Input.GetAxis("Mouse Y")); isn't working.
How to add Mouse Y to view sky?
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Mouse look Y axis sensitivity doesn't change 0 Answers
Coroutine Chain of Events 1 Answer
How to calculate angles and apply to rotate an object. 1 Answer
GUI.Button on MouseHover 1 Answer