@aybe : what language are you using ? three.js ?

about physics: it seems this is what devs used to model the collisions of the ship against the track :



see ALCOL.PRM file.

It would be a lot easier if you use a physics engine that roll your own.
Unity might be a good candidate for this.