I’m wondering if it would be possible to script a game where you can place railroad tracks and have train vehicles travel on them like in minecraft but more realistically. I was thinking there could be two sets of wheels constrained to the train car which rotate around 360 degrees to allow for turns. I’m wondering if this should be achieved using wheel physics or if the train should follow a path? Also, how can I dynamically create a path for the track model to follow?
Quite a complex thing to do, not sure what your level of scripting is but if you need something up and running quick then the Asset Store is your friend, for example MegaShapes has all the path following and track creation systems you would ever need and even has a custom script for doing trains as can be seen in their video below.