Separate directions of looking and movement locomotion

Hi everyone,

I’m trying to implement movement system where charachter whill look at mouse direction but move in WASD direction

For example:

The movement by itself is not a hrad task, but i’m not sure how to implement locomotion, so character legs will run in proper direction

  1. There is a big chance that this sytem is already implemented, please, share link if you have (no problem if it will require payment)
  2. Please share your thought on how this can be implemented

Thanks