- Home /
rotate axis of movement
Hi! I dont find way to rotate axis of character movement. In game i can rotate camera 90 degrees and player axis shoud rotate too
         moving = new Vector3(Input.GetAxis("Horizontal"), 0f, Input.GetAxis("Vertical"));
         moving *= speed;
 
         playerController.Move(moving * Time.deltaTime);
         playerController.Move(jump * Time.deltaTime);
 
         if (moving != Vector3.zero)
         {
             transform.rotation = Quaternion.LookRotation(moving);
         }
 '


 
                 
                screenshot-36.png 
                (522.8 kB) 
               
 
                
                 
                screenshot-37.png 
                (468.7 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                