aligning car to rounded surfaces

so i’m trying to do a mario kart styled game, and i wrote a system where my car drives around but doesn’t use wheel colliders and it works great but i can’t get the car to align to the ground properly when going on non horizontal surfaces.

i could raycast from where the wheels would be to get where the wheels should be at on the ground, but i don’t know how to align the car to those positions.

does anyone have any advice or tips on how to handle this?

a character controller