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

Developing Procedural Secondary Motion

Add procedural spring and damping controllers to character accessories to simulate realistic secondary motion without manual keyframing.

In this lesson, you will learn how to breathe life into character accessories like capes, dangling pouches, or jewelry by using procedural spring and damping controllers to automate their movement.

The Physics of Secondary Motion

When a character runs or stops suddenly, accessories shouldn't just "stick" to the bones. Instead, they should lag behind, swing, and eventually settle. Manually keyframing this for every possible movement is tedious and prone to breaking. By using a Spring Controller within your Control Rig, we can simulate these physical properties mathematically.

Implementing the Spring Logic

Think of a spring controller as a virtual weight attached to a bone by a spring. When the parent bone moves, the controller calculates the "spring force" required to pull the accessory toward the target position.

In your Control Rig graph, you can implement this logic using the Spring Controller node. You define three critical parameters:

  • Stiffness: How hard the spring pulls back to the target. Higher values make the motion feel tighter and more responsive.
  • Damping: How quickly the motion stops. High damping prevents the accessory from wobbling indefinitely, while low damping creates that "floppy," loose look.
  • Mass: Simulates the weight of the object, affecting how much inertia it retains during sharp turns.
// Logic flow inside the Control Rig
// 1. Get the current transform of the parent bone
// 2. Feed that transform into the Spring Controller node
// 3. Apply the resulting "Spring Transform" to the accessory bone

By connecting the parent bone’s transform to the input of the Spring Controller and mapping the output to your accessory’s Set Bone Transform node, the accessory will naturally oscillate as the character moves. Because this is calculated per-frame, it responds to every nuance of your animation, including sudden stops or sharp turns, without you ever touching a keyframe.

This creates a polished, high-fidelity look where equipment feels physically grounded in the world, automatically reacting to the character’s momentum.

Key Takeaway: By using spring and damping math in your Control Rig, you can replace tedious manual animation with dynamic, physical movement that reacts automatically to your character's velocity and direction.