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