08-23-2023, 10:41 AM
(This post was last modified: 08-23-2023, 10:43 AM by velikizlivuk.)
Once both are connected just move first one while second Absolut position if first one plus some distance? If moving along spline direction +distance if against then -distance or vice versa not sure about that. You can make distance random in range or depending on speed to achieve more realistic train like movement. Do this in Update or FixedUpdate depending on movement type (transform or rigidbody).