contrainte Unity 2D
myRigidbody.constraints = RigidbodyConstraints2D.FreezeAll;
Zarden
myRigidbody.constraints = RigidbodyConstraints2D.FreezeAll;