Information with the last 2019 Unity release

Setting freezeRotation to false removes all rotation constraints, so you need to put them back. My code is the following for it.

    // resume physics control of rotation
    rigidBody.freezeRotation = false;

    // reapply constraints
    rigidBody.constraints = RigidbodyConstraints.FreezeRotationX
        | RigidbodyConstraints.FreezeRotationY
        | RigidbodyConstraints.FreezePositionZ;
2 Likes

Thanks for pointing that out! I was trying to figure out what was going on.

Thanks, I hadn’t noticed that was going on. I’ve used your fix :smiley:

Privacy & Terms