Rigidbody2D.fixedAngle
var fixedAngle: bool;
bool fixedAngle;
fixedAngle as bool
Description

Should the rigidbody be prevented from rotating?

If this property is set to true, the rigidbody will not rotate in response to collisions and torques. This is useful when you want an object to have restricted rectilinear movement but still be controlled by physics in other aspects.

See Also: Rigidbody.freezeRotation.