Unity 物体旋转相关
时间:2021-09-21 12:06:55
收藏:0
阅读:18
在update中添加transform.localEulerAngles获得旋转角度。
print ("旋转"+this.transform.localEulerAngles);
print ("X角度为:"+this.transform.localEulerAngles.x);
this.transform.Rotate(0, 0, speed02 * Time.deltaTime, Space.Self); Z 轴自转
原文:https://www.cnblogs.com/wayne1984/p/15308314.html
评论(0)