how to set rotation to 0,0,0

I have been making a basic car game, and once the car is upside down, it flips over.

i tried using:
transform.Rotate(0,0,0);

however it did nothing

I would like it to set the x and z axis to 0 and leave the y alone (as this is it’s direction)
how would i do it?

transform.rotation = Quaternion.lookDirection(transform.forward)
1 Like

Thank you life saver

1 Like