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