Unity Rigidbody congele toda rotación

rigidbody.constraints = RigidbodyConstraints.FreezeRotation;
mehmet köksal