Rotate是围绕轴来旋转,在正交模式下,呈现水平直线,如何实现围绕设定旋转?需要用到RotateAround方法。
首先设定轴:public GameObject axis;
public float rotateSpeed;
然后在update中,加入一行代码:this.transform.RotateAround (axis.transform.position, axis.transform.up,rotateSpeed);
注意:然而效果是物体垂直于轴旋转的!
参考原文:http://www.cnblogs.com/hehaiyang/p/4333841.html