Unity Rigidbody Greeze toute rotation

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