unity3d旋转

unity3d旋转

Quaternion target = Quaternion.Euler(0.0f, tower_z_angle * (1.0f) , 0.0f);
this.transform.Find("CraneSlider").transform.rotation = Quaternion.Slerp(this.transform.Find("CraneSlider").transform.rotation, target, Time.deltaTime * 2);

 

参考:https://www.cnblogs.com/yixidehao/articles/15607046.html

#####################

posted @ 2022-09-25 19:44  西北逍遥  阅读(20)  评论(0编辑  收藏  举报