In this lesson, you will learn how to leverage the Full Body IK (FBIK) solver to ensure your character’s feet stay firmly planted on uneven surfaces like rocky slopes or stairs.
The Concept of Full Body IK
While standard Inverse Kinematics (IK) typically targets a single limb (like a foot), Full Body IK solves the position of the entire skeletal chain simultaneously. Instead of just pulling the ankle to a target, the solver adjusts the knee, hip, and even the pelvis to maintain a natural pose. This is essential for ground alignment because, if a foot is raised high to meet a step, the pelvis must dip slightly to keep the character’s posture from looking "broken" or stretched.
Implementing the Solver
To set this up within your Control Rig, you’ll utilize the FullBodyIK node. Here is the logic flow:
- Trace the Terrain: Use the
Line Tracelogic we covered in previous lessons to detect the distance between the character's feet and the ground. - Define Effectors: Create "Effectors" for your feet in the Control Rig. These act as the destination points for the solver.
- Apply the Solver: Connect your foot effectors to the
FullBodyIKnode. The solver will then compute the chain of bones from the foot up to the root, distributing the necessary rotation and translation adjustments across the leg and torso.
// Logic flow inside your Control Rig graph
// 1. Get foot position from Line Trace
// 2. Set Effector Location for Foot_L and Foot_R
// 3. Execute FullBodyIK node with:
// - Root: Pelvis
// - Effectors: Foot_L, Foot_R
// - Precision: Set to 10-20 iterations for smooth convergence
By adjusting the "Stiffness" and "Precision" settings on the FullBodyIK node, you can control how much the character "crouches" or shifts their hips when traversing difficult terrain. If the precision is too low, the feet might jitter; if it is too high, it may impact your performance. Finding the balance allows for realistic, procedural ground contact that reacts dynamically to any environment you build.
Key Takeaway: Full Body IK enables complex, multi-joint adjustments that keep your character’s posture grounded and natural, even when their feet must reach for inconsistent, uneven surfaces.