Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseShould 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.