Course contentsShow
← Unreal Engine Game Development
Lesson 306 of 8805. Animation and Character RiggingFree lesson

Applying Full Body IK for Foot Placement

You will implement Full Body IK solvers to ensure character feet remain planted correctly on uneven terrain during movement.

In this lesson, you will learn how to leverage the Full Body IK (FBIK) solver to keep your character’s feet firmly planted on uneven geometry, preventing that "floating" or "sinking" look during traversal.

Why Use Full Body IK?

When a character walks over a slope or a staircase, their animation is usually "canned"—meaning the feet are locked to a flat plane. If the ground rises, the foot clips through the floor; if it drops, the foot hangs in the air. FBIK allows the character's skeleton to dynamically adjust to the world by calculating the chain of bones (leg, knee, and hip) to reach a target location provided by your environment traces.

The Implementation Workflow

To achieve this, you need three main components working in your Control Rig:

  1. Trace Data: You likely already have your Line Trace By Channel logic set up from previous lessons. You use these results to determine the Hit Location of the ground.
  2. The Goal: In your IK Rig, you define the Root and the Effector. The Effector acts as the "target" for the foot.
  3. The Solver: Inside the Control Rig graph, you add a Full Body IK node. You map your foot bone to the Effector and set the location based on your trace hit result.

The FBIK node is powerful because it doesn't just move the foot; it solves for the entire chain. If you pull the foot down to meet the floor, the FBIK solver automatically adjusts the rotation of the knee and the extension of the hip to maintain a natural pose.

Simplified Control Rig Logic

Inside your Control Rig, you set the translation of your foot control based on the trace offset:

// Pseudocode for Control Rig logic
FVector FootOffset = TraceHitLocation - CurrentFootLocation;
SetControlTranslation(FootControlName, FootOffset);

By connecting the TraceHitLocation to your IK Goal, the solver performs the inverse kinematics math in real-time, ensuring the character’s foot snaps to the terrain precisely, regardless of the slope or surface complexity.

Key Takeaway: Full Body IK enables procedural foot placement by treating your character's leg as a chain of bones that dynamically calculates joint rotations to reach a target hit location, resulting in grounded, realistic movement.