Unity Engine documentationScript ReferenceUnityEngineRigidbodyConstraintsFreezePositionYFreeze motion along the Y-axis. Limits motion to the XZ plane only.Read time 1 minuteLast updated a month agoDefinition Type: Field Namespace: UnityEngine Assembly: UnityEngine.PhysicsModule FreezePositionY = 4