Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


freezeRotation

Controls whether physics will change the rotation of the object.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public bool freezeRotation { get; set; }

Remarks

If freezeRotation is enabled, the rotation in Z is not modified by the physics simulation.
Additional Resources: _constraints