摘要: 绕着一个点旋转 :transform.RotateAround(Vector3.zero, Vector3.up, speed* Time.deltaTime ); 第一个参数,点的位置。第二个参数,法线方向,第三个参数,速度.如图时针旋转。旋转固定角度 gameObject.transform.rotation = Quaternion.Slerp(gameObject.transform.rotation, Quaternion.Euler(60,0, 0), 6);第一个参数起始角度,第二参数结束角度,第三个参数旋转工消耗的时间。static functionLookRotation(f 阅读全文
posted @ 2013-09-16 07:31 martianzone 阅读(2262) 评论(0) 推荐(0) 编辑