how to un freeze z position in a rigidbody code example
Example: rigidbody2d unfreeze position
public Rigidbody2D rb;
void Start()
{
rb.constraints = RigidbodyConstraints2D.None;
}
public Rigidbody2D rb;
void Start()
{
rb.constraints = RigidbodyConstraints2D.None;
}