ドキュメント

Unity Engine

Unity Engine

freezeRotation

Controls whether physics will change the rotation of the object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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: Rigidbody2D.constraints.