So I have made a script to generate a curved train track (using bezier curves), The issue is that there are gaps in between the rails, or the rails are overlapping
The way to fix this would be to use something like the Resize Align plugin, but obviously this would take a while to do because it involves selecting each part one by one. My idea was to use something similar to Resize Align, but implement it into my script to make it automatic.
If this didn’t make sense, take a look at this image bellow:
Yes, there are gaps between the rails. This also occurs the opposite way on the inner rails as seen bellow:
I would like to know the basic calculation to resize these parts, if there even is any. They need resizing on the Z Axis only.