본문 바로가기

Unity

Transform.Rotate 정리

1. public void Rotate(Vector3 eulerAngles);


2. public void Rotate(Vector3 eulerAngles, [DefaultValue("Space.Self")] Space relativeTo);


3. public void Rotate(Vector3 axis, float angle);


4. public void Rotate(Vector3 axis, float angle, [DefaultValue("Space.Self")] Space relativeTo);


5. public void Rotate(float xAngle, float yAngle, float zAngle);


6. public void Rotate(float xAngle, float yAngle, float zAngle, [DefaultValue("Space.Self")] Space relativeTo);



Rotate와 Rotation과의 차이.

Rotate는 정해진 Degree값만큼 회전을 지속적으로 시켜줌.

Rotation은 정해진 값으로 회전을 대입해줌.

'Unity' 카테고리의 다른 글