This is the 3rd part of unreal engine 5 - Control Rig Leg IK setup tutorial. So far in this system, we have worked on how to find the proper location that the foot needs to be in order to match the ground or surface underneath the foot. Today, I am going to align the angle of the foot by changing the control rotation that drives the foot rotation in the control rig. So, as you can see in the thumbnail, the characters feet will be rotated to properly match the slope of the surface underneath. Here, we will be using the Aim math node in the control rig's rig graph to calculate the rotations we need to set the IK foot controller. And also, we will be looking into how to use secondary/pole vectors to keep the foot facing forward even if we need it to rotate to some degree.
password=codelikeme_foot