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