Objects rotating weirdly
I don't quite understand the problem, but I think what is wrong is that your pivot point is off. Tab edit mode, select the face you want to be a hinge, snap cursor to selected, then set the rotation point to cursor. Let's hope it works!