How to track the direction of the player

Godot Version
4.3

Question
I was wondering how do you track the direction of the player?

From Node3Ds, you can get a forward vector by -basis.z, a Node2D can use transform.x