unity3D 使用rigidbody.AddForce()

舊的代碼寫法javascript void OnMouseDown () { rigidbody.AddForce (transform.forward * 500f); rigidbody.useGravity = true; } unity 2017 新的代碼寫法java void OnMouseDown () { GetComponent<Rigidbody> ().AddFo
相關文章
相關標籤/搜索