Hi Bruno,
You could try to use Control Rig with a similar setup to how Lyra manage IK for the feet and pelvis height, meaning that the difference of tracing towards the terrain on both feet is what control the height of the pelvis, allowing you to drive a live character following the terrain slope angle.