How do I unrestrict RigidBody rotation

I keep looking around on the internet and I see people turning on the restriction but I cant find a way to turn it back off.

This is basicly what I have

void Start()
{
rigidbody.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.None | RigidbodyConstraints.FreezeRotationZ;
}

alt text

how do I turn Freeze Rotation y off

You can remove the restriction, by setting the constraints again without the constraint that you wish to remove, eg.:

rigidbody.constraints = RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationZ;

they act like masks …

rigidbody.constraints= ~(RigidbodyConstraints.FreezeRotationY|RigidbodyConstraints.FreezePosition);