利用一個四元數讓一個向量轉動

Vector3 a = new Vector3 (0f,1f,0f);
Vector3 b = Quaternion.Euler (0f, 0f, 45f) * a;(順時針轉動)
Debug.Log (b.ToString());io

相關文章
相關標籤/搜索