JamesB 发表于 2021-3-30 15:14

Unity Physicals Rigidbody with multiple colliders

Rigidbody with multiple colliders


Adding colliders changes the center of mass and rotation behaviour of a rigidbody. To set those manualy to the center of the object use:
void Start(){    rigidbody = GetComponent<Rigidbody>();    rigidbody.centerOfMass = Vector3.zero;    rigidbody.inertiaTensorRotation = new Quaternion(0, 0, 0, 1);}
页: [1]
查看完整版本: Unity Physicals Rigidbody with multiple colliders