Methods needed for moving train automatically

Hey.
How would I create a automatic train (that can follow rails, turn etc), and not be disrupted (taking off tracks etc).

I’ve got zero clue on methods for this, so looking for any help possible with this! Thank you.

1 Like

You could use either constraints so if it goes of tracks it can easily get back on or try to use bodymovers

If you want a realistically physical method, I would recommend using HingeContraints as wheels and BallSocketConstraints as connectors between cars. It would not stay on the track very well, however.

If you want a method in which the train is locked to the track, I would use AlignPosition and AlignOrientation with a script (you would have to format each car using scripts).

Gotchu, thanks. I’ll look into each of these!

Bodymovers will be the main source of moving the train right? Will welds also be needed (and unanchored?)

Yes, welds would be needed between all of your parts. If you want to keep your parts anchored and just animate them, I have a video explaining how to do that here.

Alright sounds great. Thank you!