I have created an empty to hold the relation of the resting position of a bone to a weapon. I am setting a copy transform constraint on the hand IK with this empty as the target. The constraint matches the location of the empty correctly, but I am getting odd rotation.
I have tried matching the rotation of the empty to the rotation of the hand_ik in pose mode, but that gets me the results shown above. My best guess is this has to do with how quaternions work, but I don't know how to go about fixing it. How can I set the empty rotation in such a way that the hand will have the correct resting rotation when I add the copy transform to the hand ik?