I have a simple character. I would like rig the legs so that I can easily control them. How can I IK rig my characters leg?
1 Answer
First you will need a target bone for the Ik - for example a copy of the foot bone. Make sure this bone is not parented to anything (except when you have a root/master bone - then parent it to root/master)
Now in pose mode add an IK constraint to the shin bone and setup it like in the picture. You can do this fast by selecting the target_bone first (copy of foot_bone), then the shin_bone and Ctrl+Shift+C then I. Set the IK chain length to 2.
Last step is to add Copy Rotation constraint to foot_bone.
Select target_bone (copy of foot_bone), select foot_bone,Ctrl+Shift+C then R
Now your leg is controlled with the target bone. You can also add a Pole bone for the IK constraint so the direction of the knee is defined:
You can eyeball the pole_angle, how to set it precisely is explained here: How to Set/Calculate pole angle of IK constraint so the chain does not move?
-
$\begingroup$ is foot_bone the original or the copy? $\endgroup$– VaderCommented Dec 25, 2014 at 14:28
-
$\begingroup$ original - the copy is target_bone, i will edit it so its clear. $\endgroup$ Commented Dec 25, 2014 at 14:30
-
$\begingroup$ In the Copy Rotations constraint I can't add the new bone as the vertex group. Why is this? $\endgroup$– VaderCommented Dec 25, 2014 at 14:38
-
$\begingroup$ Make sure characters armature object is in Target: input field and not some mesh object $\endgroup$ Commented Dec 25, 2014 at 15:38
-
$\begingroup$ Also if your leg doesn't bend correctly (remains stiff even if you move the target). Make sure to go to edit mode and give a small rotation forward to the shin bone. this will make the IK constraint work properly (kudos: blender.stackexchange.com/a/203683/83141) $\endgroup$– LukeCommented Jan 3, 2023 at 14:08