Lock Hinge Joint

Is there a way to lock a hinge joint so the object attached to it won’t rotate or change its position unless the motor is turned on? I have a parent object, agentHuman, that has a child object, upperBody, set as the connected rigid body. agentHuman is what controls the movement of the object around the world, but there are times when upperBody needs to rotate separately from agentHuman. Also, upperBody is what has the collider, so any collision with upperBody should affect the position of agentHuman.

What’s happening is when something collides with upperBody the position of upperBody is being changed so it’s no longer at (0, 0), the default position. Any thoughts?

rididBody.freezeRotation = true;