2020年5月6日星期三

thumbnail

Unity Physicals 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.centerOfMass = Vector3.zero;
    rigidbody.inertiaTensorRotation = new Quaternion(0, 0, 0, 1);
}

Subscribe by Email

Follow Updates Articles from This Blog via Email

No Comments