Spawn a train along a curve

Hi everyone, was wondering if anyone could help me with a problem.

I have a spawning system for a train that allows each carriage to be generated and spawned directly behind the previous carriage. Only problem is, I do not know how to adapt it for curves

My goal is to spawn the train along a curve much like the image shown below

If anyone can provide a helping hand would be appreciated!

1 Like

The train track is made with parts right? which has no curve at all, its the orientation what causes a curve for the track, right?

Read the parts of the track, check its orientation each time a new carriage is created over each track’s part

yes but a train could be longer then a curve segment, therefore it would need to span across multiple ones

gonna bump this, revisited it out of boredom and couldn’t think of a solution if anyone has one.