Unity Engine documentationScript ReferenceUnityEngineRigidbodyConstraintsFreezePositionXFreeze motion along the X-axis. Limits motion to the YZ plane only.Read time 1 minuteLast updated 11 days agoDefinition Type: Field Namespace: UnityEngine Assembly: UnityEngine.PhysicsModule FreezePositionX = 2