# 'Double Rotation using Bones'

I think we should start with a little info about this tutorial. I created a rig for a character in a group project I was doing in a class, and once the rig was completed and we looked at the 3D animatic, we noticed there was a problem with the hand rotating around; double rotation in the forearm. We searched on the internet to try to find a solution to the problem, but since we couldn't we had to tackle it ourselves. My teacher wouldn't let me stop until I reached complete fetal position, so let's get down to how I solved this problem.

For those of you who don't know what double rotation is; it's the rotation of two bones inside your forearm--the radius and the ulna. As you rotate your hand those two bones rotate over one another to allow us such motion.

Now, with Max, the Biped system has this option checkable to solve this problem, but for those of us who like using the Bones system to setup our rigs, this tutorial will help you realize this concept if you haven't, or solve it if you have run into this problem. I just want to make a quick note that I learned how to rig characters using bones by using the book, Model, Rig, Animate with 3ds Max 7 by Michele Bousquet. Very good book to help get the beginners started and what not. If you don't have double rotation setup up in your rig, you'll receive a twist like that in the following photo. It's a playblast of the animatic where we noticed the problem first.

When you have your model completed, make sure you have the right edge loops for where you place your bones. For the double rotation, you have to create another edge loop between the wrist and the elbow joint. Like that circled in this next photo.

The character I set this up in was called "Emo Boy." So, in his rig I attached his name to the bones which looked like this: (Note, red bones and controllers are for the right side of the rig, blue bones and controllers are for the left side, and yellow is for the spine, neck, and head. That is just my personal preference.)

Bone_Emo_Clavicle_R
Bone_Emo_UpperArm_R
Bone_Emo_LowerArm_R
Bone_Emo_LowerArm01_R
Bone_Emo_Hand_R

Those are just the bones for the arm so that it's easier to follow along with this tutorial. If you didn't know, you should have the bones at the elbow joint at a slight angle so the IK chain can deform properly. Here is a picture of the arm bones placed in the Emo Boy model.

After the bones have been placed in the correct spot, you then create four dummy helper objects. You name them according to
the names of the bones, for example;

Bone_Emo_Hand_Dummy_R
Bone_Emo_LowerArm01_Dummy_R
Bone_Emo_LowerArm_Dummy_R
Bone_Emo_UpperArm_Dummy_R

Next, you have to align these Dummy objects to the bones, the dummy's are going to act as bones to apply the IK chain with, confused yet? I hope not, but hopefully things will get easier. I recommend aligning them from the hand bone up to the upperarm. For the Hand dummy, LowerArm dummy, and UpperArm dummy, align them using the following photo (Align XYZ position, and XYZ orientation).

With Bone_Emo_LowerArm01_Dummy_R align it the same way, BUT only align the XYZ position, not the XYZ orientation. This will help make sure the IK chain bends like a triangle, instead of a rectangle, which is what you don't want.

This next part is the MOST confusing part about setting this up, refer to the following picture.

Basically, you have your dummy's lined up with your bones and you begin linking them so thing start to move how they are supposed to. I'm going to list the names of the bones and what to link them to, but in the image you just have letters as reference for the linking information. Make sure you start with the big black arrows on the bottom; which would be:

Bone_Emo_Hand_Dummy_R

Like I said, check the previous photo for a simpler version of this linkage system.

The next step, with the UpperArm dummy object selected, go to Animation -> IK Solver -> HI Solver. When you get the rubberband, click on the Hand dummy object to create the IK Chain.

Check it to make sure it works, but make sure you Undo so that it goes back to the right spot. After creating the IK chain,
you can create your Wrist controller; I renamed mine CTRL_Wrist_R.

To create the controller a circle, then rotate it 90 degrees to the right while holding shift, and then select the original and rotate that one 90 degrees again while holding shift to have 3 circles. Then convert a circle to an Editable Spline, and then click on vertex sub-object mode, and then Attach Mult. and click the other 2 circles so you have one circle all together. Next, once you have your controller, you will align its position only to the IK chain, and then you will align its orientation to the Hand_Dummy_R object. Then, select the IK chain and link it to the CTRL_Wrist_R. Then, select the Hand_Dummy_R object and go to Animation -> Constraints -> Orientation Constraint and once the rubberband shows up click on the CTRL_Wrist_R. So pretty much, this is what you should have, and NOW, all you have left is to setup the Double Rotation.

Select both of the forearm bones (LowerArm01 and LowerArm) and select the CTRL_Wrist_R. Then hold down ALT and Right-Click to bring up the Animation Quad menu, and then click on Freeze Rotation.

Then select the LowerArm01 bone and Right-Click and click on Wire Parameter -> Transform -> Rotation -> Keyframe XYZ -> X Rotation to the CTRL_Wrist_R's Transform -> Rotation -> Keyframe XYZ -> X Rotation.

After that the Wire Parameter Dialogue box will pop up. If you followed the previous instruction, the CTRL_Wrist_R should be in the right window, you then click the arrow facing to the left and in the Expression for Bone_LowerArm01_R x-rotation type in X_Rotation/2 and then click Connect.

THAT'S IT!!! Finally, finished, take a look at the next picture and you'll notice that the hand bone has been rotated 90 degrees and the LowerArm01 bone has rotated half as much, so once you skin your model, that will help with stopping that ugly deformation in the wrist. Just make sure when you add the skin modifier to your model, make sure you add the BONES, not the DUMMY objects. Hope that works for everyone, and hope it's useful. Any questions or comments, you can e-mail me at wbroeckel31@gmail.com

That is the skinned version of double rotation, if I had my model textured it would make much more sense, but please trust me, it's there and it helps out a lot.