Unity5.X3D 游戏开发技术详解与典型案例-笔记

3.3.1 Rotate&Translate 用于旋转的Rotate方法和用于移动的Translate方法都有4个参数的重载形式。第四个参数为Space枚举类型,若是设置为“Space.Self”变换被应用于自身轴;若是设置成“Space.World”变换被用于相对于世界坐标系统。若是不设置,默认为“Space.Self”。 C#代码片断:css this.transform.Rotate(5,0
相关文章
相关标签/搜索