Unity Engine documentationScript ReferenceUnityEngineRigidbodyConstraints2DFreezeRotationFreeze rotation along the Z-axis.Read time 1 minuteLast updated 10 days agoDefinition Type: Field Namespace: UnityEngine Assembly: UnityEngine.Physics2DModule FreezeRotation = 4