follwing the wall(hovercraft)

Hello we are doing an hovercraft like starship race game for our school project and we would want the ship to foloow the wall instead of colliding in it when he comes to the wall from side. To be more clear we want the ship to take a side position and glide on the wall to follow it. so if anyone can help it would be appreciated ^^

Raycast seems to be the best solution for this, just make a function to keep certain distance from the wall.

You might find that wheel colliders positioned so that the “wheels” point out sideways will give the effect you want here. You should probably set the forward and sideways friction to zero and use a low spring force with some damper applied. The low force will stop the hovercraft staying rigidly away from the wall, while the damper will stop it from bouncing away when it approaches the wall at speed.