if i use RigidbodyConstraints.None then it will remove everything i only want to remove the x and y
rigidbody.constraints &= ~(RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY);
if i use RigidbodyConstraints.None then it will remove everything i only want to remove the x and y
rigidbody.constraints &= ~(RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY);