I have a top down game and would like the player object to point the direction that the rigidbody2d is moving
transform.rotation = Quaternion.LookRotation(RB.velocity);
(put name of your rigidbody in place of RB)
I’ve used it in 3d, give a try in 2d, hope it works