Rigidbody.freezerotation DOESN'T FREAKING WORK
Please, is there an alternative? Freezerotation acts like "slow down rotation a lot, but not actually freeze it", every time my object interacts with something, it changes, so is there an absolute object lock that doesn't let it move until I let it?
What exactly is your problem? If you set a rigidbody's xyz rotation constraint via the inspector, it will not rotate in those axis due to physics collisions.
One common confusion is that freezeRotation completely allows script-based rotation. If you're childed to something, or connected by a joint (maybe?) you might get some rotation from that.
Put another way, all it prevents is your rigidbody's rotations.
Answer by KillerButter2K · May 23, 2016 at 04:16 AM
Just lock all of the rotation constraints in the rigid body component.
Answer by Fritsl · Apr 08, 2017 at 12:42 PM
There's apparently a bug. Currently I have a simple project where Rigidbody has multiple colliders and triggers. In some cases freeze rotation just does not work. Then I switch off an innocent box collider, just one hanging out in space, then freeze rotation does not work. Then in another prefab just like it when it comes to physics, it always works.
Your answer
Follow this Question
Related Questions
Camera Lock/freeze on keypress 0 Answers
Camera Lock/freeze on keypress 1 Answer
How to Freeze Quaternion rotation in Y axis 1 Answer
How to freeze an object when collision? 4 Answers
Freeze Rigidbody 1 Answer