
Reference Image :

I am trying to make a wipeout/hovering car game. To stop the car from flipping, i have locked all the rigidbody rotation axis. However I would like the car to rotate to the normal of the slope or ground which it is currently above (smoothly if possible).
This is my 2nd game I am making and am very inexperinced with c#, and I am not sure how to achieve this effect. I think I need to raycast past the collider (the air the car is resting on) and hit the ground to recieve information on the normal of the ground. I think I then need to lerp my current X rotation to the new normal rotation. However I dont know if this is right or how to do it.
Any advice is massively appreciated!