In this chapter we are going to create a custom orientation on the curve that will allow us to have the train leaning into a turn and also follow its slope. We are going to use the super formula to create an interesting shape for the rail itself and finally isolate tunnel segments for further processing.
In this clip find the right leaning factor foreach piece of the curve. We use it to create a custom orientation.