Cant stop object/ridgidbody from rotating
I've tried using ridgidbody.rotation = Vector3 and Quaternion, and also ridgidbody.rotate(Vector3), But I can not stop it from rotating, with ridgidbody.rotation it rotates less, but it still won't stop rotating.
Answer by KittenSnipes · May 01, 2018 at 08:53 AM
Make it kinematic. There is an option under the rigid body component for that. Or there is a drop down on the Rigidbody component at the very bottom that allow you to lock rotation on certain axes
Answer by xortrox · May 03, 2018 at 05:24 PM
You have not explained how you are trying to use the rigidbody, which would be essential to answer your question. I can only assume you're trying to lock its rotation while still being able to have physics applied to it, in which case you need this:
https://docs.unity3d.com/ScriptReference/Rigidbody-constraints.html
Your answer
Follow this Question
Related Questions
How to put limit for Transform.rotate in unity 2d 1 Answer
Problems With .rotate behavior 1 Answer
How can I add rotations to transform.rotation? 0 Answers
Check rotation of an obstacle 0 Answers