F-Zero style Vehicle physics

I do believe what is happening is, as the vehicle goes off the track it begins to rotate, which causes the line trace to turn back towards the track… When it makes a connection, it resets the vehicle to the point above where it made the contact. (part of your code that sets the rotation to the track)
I thought of several ways to check/compensate for it.

  1. Try it with something like a “dead zone” on edges. Get it so it only works if the ray trace hits the track official. Then put some mesh boundary that wont trigger the effect but will block the trace.
    (might work it into the game as something that drops your speed and reduces the value of your lift the longer you are on it?)

  2. set the ray to always point “down”. Not in relation to the vehicle but world.

  3. Or Keeping the vehicle’s rotation…

  4. An if statement that doesnt correct the vehicle if it has gone past a certain point or, if ray is hitting a “dead zone” at the end.