标题: 旋轉 問題 [打印本页] 作者: 她。 时间: 2013-1-4 11:00 标题: 旋轉 問題 請問一下這是官方的程式function Update() {
// Slowly rotate the object around its X axis at 1 degree/second.
transform.Rotate(Vector3.right, 1);// ... at the same time as spinning it relative to the global
// Y axis at the same speed.
transform.Rotate(Vector3.up, Time.deltaTime, Space.World);
} 可是套用進去之後他會一直轉 停不下來我要怎麼做才能讓她停在90度 謝謝大家 作者: 狂风大尉 时间: 2013-1-4 14:37
你直接用里面的动画设定做一个y轴90度转向不是更方便吗