Quantcast
Channel: Questions in topic: "mass"
Viewing all articles
Browse latest Browse all 157

Compare rigidbody.centerofMass with go.rigidbody.centerofMass ?

$
0
0
hello, sorry about my English. First, this is my code: ---------- Rigidbody rigid; void start() { rigid = gameObject.AddComponent(); rigid.centerOfMass = Vector3.zero; } ---------- void Start() { gameObject.rigidbody.centerOfMass = Vector3.zero; } ---------- First, i think their are same, but when i used them. The result of first code is not my expected. Please help me to distinguish them. Thanks.

Viewing all articles
Browse latest Browse all 157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>