Train system using lerp

Hi, I’m working on a train system and I’m thinking of making it move using lerp as its smoother and probably more performant than a physics train.

I do not want to have to place nodes into each point the train turns at or to loop through each part that starts to turn of the train and get the tracks orienation, and this wouldn’t be permenment because someday I want to make tracks one whole rail in blender instead of multiple differen’t rails to make a curve.

Here are 2 ideas I’ve got, let me know which idea you think is best or what other ideas you’ve got.

Idea 1: A part underneath the train thats in the middle of the track that would raycast and figure out the distance between the part and the rails and does some calculation and turn from that. The issue with this is, its probably too complicated, bad on performance espeically with multiple units/trains coupled and would have to be done for every bogie.

Idea 2: Like physics trains, have fake bogies that have gliders and then the train could find out the primary parts of the bogies look vector, and do some easy calculation from that to set the orienation of the train.

Anyone, any ideas?