(s)lerp y-rotation to the direction of velocity

Hi all

I’m facing this problem here that I can’t resolve.
My car-type object moves and can jump on the local y-axis.
When it is on a steep slope and it jumps, I want it to (slightly) face the direction of the velocity by changing the y-rotation.

Thanks for your help, I appreciate it

Greets, Senne

I already found a solution

if (!grounded) {
transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(Vector3(rigidbody.velocity.x, 0, rigidbody.velocity.z)), Time.deltaTime/faceFactor);