If you want to rotate the object to a specific angle use: float degrees = 90; Vector3 to = new Vector3(degrees, 0, 0); transform.eulerAngles = ... ... <看更多>
Search
Search
If you want to rotate the object to a specific angle use: float degrees = 90; Vector3 to = new Vector3(degrees, 0, 0); transform.eulerAngles = ... ... <看更多>
Transform.Rotate is used for transforms (I know, excuse the redundancy). If you are already displacing with Rigidbody, then use Rigidbody. ... <看更多>