Does anyone have some basic scripts they might be willing to share for making a train move? I have assets for the train, a few passenger cars, and the tracks. I’m looking to push a button to move forward, and another to move backward. I hear that turning is the hardest part. I looked into pathfinding/waypoints for turning but at this point I’m still learning unity and coding so I should slow down and start with forward and backward motion first.
fellow beginner here, what you could do if the train has a simple path is use a collider on an invisible quad and when the train hits it, it could turn 10 or 20 degrees or so.
There is a Spline system on the asset store that has a component in it just for moving multiple objects along paths and the example that can be seen in the video below is a toy train with multiple carriages all with independent wheels moving along a track that is also generated by the asset.