Unity 物体围绕轴线转动
发布时间
阅读量:
阅读量
一、绕X轴运动分析
1、旋转90度
Quaternion rotation = Quaternion.AngleAxis(90f, Vector3.right);
Debug.LogError("rotation : " + rotation.ToString());
gameObject.transform.rotation = rotation;


2、将角度调整为45度
Quaternion rotation = Quaternion.AngleAxis(45f, Vector3.right);
Debug.LogError("rotation : " + rotation.ToString());
gameObject.transform.rot
全部评论 (0)
还没有任何评论哟~
