프로그램/Unity-Refer
transform.rotate
로드러너
2016. 3. 8. 22:26
transform.rotation값을 변경하면 오브젝트가 회전한다.
float rnd = Random.Range(0.0f, 0.5f);
this.transform.rotation = Quaternion.Euler(and, 0.0f, 0.0f);
X축을 기준으로 임의의 각도만큼 회전한다.
관련글