The track i am working on is using a banked curb from an oval.
I am trying to understand how banking works.
I have a track descent when entering the curve.
It seems that the track is rotating from the segments center. Not easy to manage transitions.
if i am right, i suppose that i have to raise the banked track part by track-width/2 * sin(bank-angle) ?
The content of the bank structure in the TED file is unclear to me :
View attachment 644121
Can you help me please to understand the parameters and usage ?
Banking can be a pain so I'll try my best to explain & give a few examples.
To make a 1 or more banked segments is the easy part, you pick your section of track you make it say (10 for anti-clockwise or -10 for clockwise)
To join more sections together is just as easy because it has the same banking value so example time
Section 1, banking -10, shiftnext 0
Section 2, banking -10, shiftprevious 0
Now for the blending in part, this part can be a pain in bovril highway
When blending in you must take note of the previous or next length of track you are blending into, otherwise you will get nasty little jumps. Example time again
Section 1, banking 0, vlength 100m, shiftnext 100.
Section 2, banking 5, vlength 100m, shiftprevious 100, shiftnext 0.
Section 3, banking 5, vlength 100m, shiftprevious 0, shiftnext 100.
Section 4, banking 0, vlength 100m, shiftprevious 100.
(All based on 4x sections of track at 100m each with a 100m blend in & out)
Now the more advanced part, as more often than not you wont have the luxury of having 4 parts of a corner the same length.
Notice above I didn't take the shiftnext or shiftprevious past 100m, that is because if you try to the make the blend longer than what the previous or next length of track is you will get a nasty bump.
A more realistic example:
Section 1, banking 0, vlength 97, shiftnext 97.
Section 2, banking 5, vlength 55, shiftprevious 97, shiftnext 0.
Section 3, banking 5, vlength 49, shiftprevious 0, shiftnext 85.
Section 4, banking 0, vlength 85, shiftprevious 85, shiftnext 0.
You may still encounter issues as I'm not entirely sure if the banked length plays a part, as a rule of thumb I normally keep it to blending the shortest distance to avoid any mistakes.
Example again lol.
Section 1, banking 0, vlength 97, shiftnext 55.
Section 2, banking 5, vlength 55, shiftprevious 55, shiftnext 0.
Section 3, banking 5, vlength 49, shiftprevious 0, shiftnext 49.
Section 4, banking 0, vlength 85, shiftprevious 49, shiftnext 0.
As you can see I've kept within the smaller values of track length to avoid any bumps.
There's still a few more trick to teach like banked S bends which can be tricky as you have to half the value of said track length as it's blending in & out in 1 go but we'll get to that if you need help with it.
1 last little example.
Section 1, banking 0, vlength 100m, shiftnext 50.
Section 2, banking 5, vlength 100m, shiftprevious 50, shiftnext 50.
Section 3, banking -5, vlength 100m, shiftprevious 50, shiftnext 50.
Section 4, banking 0, vlength 100m, shiftprevious 50.
Or
Section 1, banking 0, vlength 100m, shiftnext 50.
Section 2, banking 5, vlength 100m, shiftprevious 50, shiftnext 50.
Section 3, banking 0, vlength 100m, shiftprevious 50.
Hope all this makes a bit more sense
any issues let us know & I'll try to help