Looks like each train car is rotating around its center, causing the front and rear ends to leave the tracks when turning. You’ll want to sample two points on the track, one at each end of each train car where the wheels would be, then use the two points to position the car more correctly.
Looks like each train car is rotating around its center, causing the front and rear ends to leave the tracks when turning. You’ll want to sample two points on the track, one at each end of each train car where the wheels would be, then use the two points to position the car more correctly.