Inverse kinematics makes animation easier in many situations. For example, to put a foot in a certain position using forward kinematics, you need to rotate the hip, knee, and ankle. However, by using an IK handle on the ankle, you can move the ankle into position, and the hip and knee rotate accordingly (Figure 10.26). Figure 10.26. On the left, an IK handle moves the foot. On the right, both the hip and ankle are rotated to move the foot. You can also use an IK handle to make a foot or hand stick in one spot. When your character is walking and you want one foot to remain planted on the ground, IK handles make it much easier to keep that foot in place (because multiple rotations in the joints connected to the IK handle help to keep it that way) (Figure 10.27). Once it's keyframed, the foot does its best to stay where it is even though the joints in the IK chain are rotating. The same goes for arms and hands. If your character is climbing a ladder or leaning against a wall, an IK handle will help keep it in place. Figure 10.27. The top of the leg is moving, but the ankle stays put because it has an IK handle, which is keyframed. Note that this foot also has an IK handle going from the ankle to the ball and from the ball to the toe. These IK handles keep the rest of the foot in place. To add an IK handle:
The Twist attribute only works on a Rotate Plane (RP) type of IK handle. By default, a Rotate Plane solver is created when you make an IK handle. If you move the IK handle too high, however, the leg flips around, and the knee points in the opposite direction (Figure 10.31). You can solve this problem by adjusting the Pole Vector attributes, which are in the Channel Box for the IK handle. Figure 10.31. When a leg is lifted too high, it can flip over if you're using an RP IK handle. Another alternative is to create a Single Chain solver. Although it doesn't permit the Twist attribute like the Rotate Plane solver does, the Single Chain solver doesn't have the same flipping problem that Rotate Plane has. When using a Single Chain solver, you can rotate the limb by rotating the IK handle. However, the Rotate Plane solver is considered more predictable because it's not affected by the rotation of the IK handle. To create a Single Chain IK handle:
|