Rigidbody2d Position de non-reget
public Rigidbody2D rb;
void Start()
{
rb.constraints = RigidbodyConstraints2D.None;
}
Comfortable Capybara
public Rigidbody2D rb;
void Start()
{
rb.constraints = RigidbodyConstraints2D.None;
}
rb.constraints = RigidbodyConstraints.FreezePositionX | ~RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezePositionZ;