hello. I just completed a 2D roguelike tutorial. Right now, I'm making a roguelike in 3D.
How can I make the player face the direction of movement in 3D? For example, when I press the 'D' key, I want the player to always look right in world coordinates. Conversely, when pressing the 'A' key, I want the player to always look left.
I've been thinking and trying for hours, but I don't know how to do it properly, so I would appreciate it if you could give me a hint.