How can I make a moving object hold me while it moves, my train is slowly slidding out from under my feet

select the collision component of the train, and look in its details panel.