Unity Engine documentationScript ReferenceUnityEngineRigidbodyConstraintsFreezePositionZFreeze motion along the Z-axis. Limits motion to the XY plane only.Read time 1 minuteLast updated 2 months agoDefinition Type: Field Namespace: UnityEngine Assembly: UnityEngine.PhysicsModule FreezePositionZ = 8