My task was to create a System that would adjust position of feet at run-time to better align with the surface below.
IK system can be used to adjust the position of feet at runtime to align limbs better to the surface they are on
I've created an IK (Inverse Kinematics) system that uses a ray traces to determine correct foot position.
The Pelvis is also adjusted as to prevent overstretching in certain cases (can be seen in the video).
Ray is cast from above each foot downwards along Z axis, upon hit, we calculate Z offset from root position for each foot. and adjust pelvis Z offset to match