Carriage line up with train track?

Hi there, Im making a train system where I attach the carriages to the carriage or train infront of it. I do this so that the carriages are directly attached to avoid any offset between the carriages when the train is moving. Is there a way I can keep them attached to the carriage infront of them while making them line up with the track without using physics constraints as I am not using physics?

Thank you.