Ograniczenie Unity 2d

myRigidbody.constraints = RigidbodyConstraints2D.FreezeAll;
Zarden