Component follow through

Hi guys!

Im using the advanced vehicle sample, and im trying to attach multiple vehicles together, and have them follow the main locomotiv in a sort of caterpillar movement, like an animation follow through…

How would I go about doing something like that?