Use the waypoints to specify a cubic curve of some kind (hermit, bezier, etc) Then use the computed points along this curve to control how the train should move.
↧