- 270 名前:名前は開発中のものです。 [2017/04/13(木) 22:13:41.16 ID:j7JF8BF1.net]
- ありがとうございます。
色々試して何とかキューブの周りに引っ付ける事が出来ました。 float force; float torque; private Joint myJoint; public AudioSource sound01; public AudioSource sound02; public void Shoot(Vector3 dir) { GetComponent<Rigidbody>().AddForce(dir); } private void OnCollisionEnter(Collision other){ gameObject.AddComponent<FixedJoint>(); myJoint = GetComponent<FixedJoint>(); myJoint.connectedBody = other.rigidbody; しかしながら、キューブが回転する度グラグラ揺れ挙動が落ち着かないので、少し別の方法も考えてみます。
|

|