Bend Directions

By default, Power IK will bend limbs in the direction that they are bent in the input pose.

Sometimes the input pose does not give a good enough hint of which direction to bend in. So the solver must be supplied with an explicit Bend Direction.

If knees and elbows are observed bending off-axis, chances are custom Bend Directions must be supplied.

Bend Directions

Specify a Custom Bend Direction

  1. Determine the name of the bone that is bending in the wrong direction. This can be found in the Skeleton editor in Unreal.
  2. Determine what local axis (in bone space) that points in the direction the limb should bend. For example, if the Y axis points in the direction of the knee, the bend vector is 0, 1, 0. Make note of this vector.
  3. Select the Power IK Solver node and in the detail panel locate the Constraints section.
  4. Click the + icon next to Bend Directions to add a new Bend Direction to the array.
  5. Add the Bone Name and Bend Direction vector.
  6. Save and compile the animation blueprint.

The specified bone will now bend in the direction of the vector.

The following image shows the custom bend directions appropriate for the Unreal Mannequin. Notice that the Right side bones have their vectors negated.

Bend Directions

How to Determine the Bend Vector

These vectors can be discovered by selecting the bone in the skeleton editor and observing the axis that points in the direction the bone should bend. In the image below the Mannequin's left knee should point in the positive Y direction, so the bend vector is (0, 1, 0).

Bend Directions