Rotate the player in a 3D sidescroller

Hi folks, I hope you’re doing well. I’m trying to rotate the player when it’s running through a curved map in a 3D sidescroller but I can’t find any viable way to implement this function on my project.

Basically, the player can move to the left, right, and jump but with a curved map (the player has to automatically rotate when reaching the curved part of the map) as you can see in this example video from the game “Elsword” the player rotates in the function of the map’s curves.

If I’m not posting this thread in the correct section, I’ll change it.

Thanks in advance, have a nice day!

Could you give a timeframe of the vid so ppl do not have to watch all 30 minutes of this useless vid?

Sorry for that, you can see it from min 12:10 to 13. Also in 17:36 and 23:09 (best examples of this movement).