[OPEN-SOURCE] Machinery Modelling Toolkit

I think on most trains the wheels on both sides rotate at the same speed, but their profile makes it so it behaves sorta like a CVT, making the outer wheels touch the tracks on the point where they (the wheels) are wider; making it so, as long as all the shapes and stuff are calculated right, they self-steer back into a centered position mostly aligned with the direction of the tracks.

I’m no train expert though.