标签:form orm for time vector oat tran 旋转 nbsp
第一种方式
private GameObject center;
//旋转
center.transform.Rotate(new Vector3(0, -1, 0), Time.deltaTime * speed);
第二种方式
private void RotateSelf(GameObject obj,float speedSelf)
{
//角轴
var rotate = Quaternion.AngleAxis(Time.deltaTime * speedSelf, Vector3.up);
obj.transform.rotation = rotate * obj.transform.rotation;
}
//调用方法
RotateSelf(center.gameObject,-10f);
标签:form orm for time vector oat tran 旋转 nbsp
原文地址:http://www.cnblogs.com/Study088/p/7127057.html