Creating IK legs with a three-pivot foot