how to reset the position after collision

I m making a car game and when it hit on the wall it get stucked and I have to move it back to drive. I mean I cannot turn it. Is there any way so that I can set its position so that I dont have to drive it back to turn. Really needed. Thanx in advance guys…

Record periodically (each seconds ?) the position of the car if it is a valid one => if you fell off a cliff, it is not a valid position. You could do that with a Physics.OverlapSphere for obstacles I guess.

When you’re stuck inside a wall, reset to the last valid position.