contrainte Unity 2D

myRigidbody.constraints = RigidbodyConstraints2D.FreezeAll;
Zarden