我可以對輸入的模型統一翻譯旋轉一個導入的對象
我應該怎麼做,使之旋轉,我無法找到一個很好的來源不統一translate.rotate (0,5,5)
。
我的代碼是在這裏:我把腳本下的齒輪或主攝像頭,但它不會轉動我的腳本
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour {
public GameObject gear;
// Use this for initialization
// Update is called once per frame
void Update() {
gear.transform.Rotate (100, 10, 10);
}
}
腳本既主攝像頭和對象下.... – dsada