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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!