public bool freezeRotation ;

描述

控制物理是否会更改对象的旋转。

如果启用了 freezeRotation,则物理模拟不修改 Z 轴的旋转。

另请参阅:Rigidbody2D.constraints