-
vector3(1,0,0)를 y축으로 45도 회전 결과는 (sqrt (.5), 0, sqrt (.5))다. 회전 된 벡터의 길이는 일정하게 유지된다.
v3 = Quaternion.AngleAxis(-45, Vector3.up) * v3;
v3 = Quaternion.Euler(0, -45, 0) * v3;
'Unity' 카테고리의 다른 글
Unity - Vertex (0) 2021.03.22 Unity - 튜플 리턴 타입(tuple return type) (0) 2021.03.22 Unity - Renderer.material 수정 (0) 2021.03.21 마우스로 Obj 튕겨 밀어내기 (0) 2021.03.21 Unity - Rigidbody.AddForce (0) 2021.03.20 Unity - singleton pattern (static, global) (0) 2021.03.20 Unity - Mouse (object event) (0) 2021.03.20 Unity - 3d object drag (0) 2021.03.20