Unity Rigidbody Freeze Rotation Y Z

rigidbody.constraints = RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ;
mehmet köksal