Make body sidestep when RL player moves in those directions Like Boneworks?

I am planning to implement a similar locomotion system to the one in bone works Mainly interested In how the characters body moves with the real life player when they step in any direction.
I came up with the Idea of using the HMD head world space location of X & Y then setting the root of the character mesh to follow those directions.
But I think It would be better to turn the HMD vectors or rotation in to input and Use that, But Im not sure how that could be done.
Anyone solved this Or know how to turn VR headset vector /rotation data to Input