您的位置:首页 > 其它

Transform.RotateAround

2015-05-04 15:25 417 查看
方法参数如下:

public void RotateAround(Vector3 point, Vector3 axis, float angle);

point:旋转轴中某个点;
axis:旋转轴向量;

angle:角速度

样例:

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
void Update() {
transform.RotateAround(Vector3.zero, Vector3.up, 20 * Time.deltaTime);
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  RotateAround Transform