- Home /
How can i rotate my rocket with out it zooming of in different directions
Hi all, I have this really annoying bug that makes my object zoom of in different directions instead of just rotating... Here is my code-
 private void Rotate()
 {
     rigidBody.freezeRotation = true; // take manual control of rotation
     if (Input.GetKey(KeyCode.LeftArrow))
     {
         transform.Rotate(Vector3.forward);
     }
     else if (Input.GetKey(KeyCode.RightArrow))
     {
         transform.Rotate(-Vector3.forward);
     }
     rigidBody.freezeRotation = false; // resume physics control of rotation
 }
}'
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                