- Home /
Change Orientation,Change Facing Direction
Im trying to make a racing game, but in order to make a car work I need to be able to turn the actual object and not just use transform.rotate Can someone help me out here? Sorry if I did anything incorrectly its my first forum post.
               Comment
              
 
               
              maybe use Rigidbody.AddTorque for physics objects
It has the same effect as transform.rotate, It just rotates the object without actually rotating the orientation, I may have just used it wrong though, $$anonymous$$y use: if (Input.GetKey("a")) { GetComponent().AddTorque(0, 5, 0); }
or transform.eulerAngles if you want to rotate from specific angle. Quaternion.FromToRotation if you want to rotate to direction. Idk
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                