Unity Engine documentationScript ReferenceUnityEngineRigidbodyConstraints2DFreezePositionXFreeze motion along the X-axis.Read time 1 minuteLast updated 13 days agoDefinition Type: Field Namespace: UnityEngine Assembly: UnityEngine.Physics2DModule FreezePositionX = 1