Ograniczenie Unity 2d
myRigidbody.constraints = RigidbodyConstraints2D.FreezeAll;
Zarden
myRigidbody.constraints = RigidbodyConstraints2D.FreezeAll;