初速度の設定 - Himeyama/Unity_memo GitHub Wiki
初速度(0, 10, 10)
を与える。
// GameObject go;
Rigidbody rb = go.GetComponent<Rigidbody>();
rb.velocity = new Vector3(0, 10, 10);
初速度(0, 10, 10)
を与える。
// GameObject go;
Rigidbody rb = go.GetComponent<Rigidbody>();
rb.velocity = new Vector3(0, 10, 10);