Rotate player smoothly to direction of velocity

UPDATE 2

I fixed smooth rotation with my own script as well, much smoother now, see pic below. But again, my problem is to limit it to the diagonals and get the inverse of the direction of acceleration when moving backwards, can I clamp it somehow in this script? And make some check so that it rotates inversely when moving backwards on diagonals?

2 Likes