Rotating Legs Based off Direction of Movement

Hey there! I’m currently trying to replicate the rotation of legs as seen in evade:

There have been dev forums on this, but none haven’t really gone into depth on how to achieve this effect.

Best regards and thank you in advanced.

Hello! im bumping this as I have not found a solution.