利用一个四元数让一个向量转动

Vector3 a = new Vector3 (0f,1f,0f);
Vector3 b = Quaternion.Euler (0f, 0f, 45f) * a;(顺时针转动)
Debug.Log (b.ToString());

posted @ 2015-12-08 14:00  Akishimo  阅读(283)  评论(0编辑  收藏  举报