Hiya
The Lateral offset I was referring to is best described as…
Front axle of the truck (bogie) is central of the track centre, so is the rear
Therefore the centre of truck is somewhere along the line between the two points, which is a chord across the curve described by the track centre line.
This can be calculated… it is something like the cosine of the axle slip angle *2 / half the tuck WB
where the slip angle is the difference between the angle of an axle and the perpendicular at that point in the track.
As I mentioned it may or may not be a problem with short WB trucks but a ten wheeler will be quite a long way out
The angle of the trucks is not always the same… they are only the same if they are both on the same constant radius section
Probably best illustrated when one truck is on a right hand curve the on a left … as is the case of a crossover in the track
Nothing wrong with using set track sections, I am doing exactly the same with my projects for the turnouts but they are transitional curves (bezier)
If I have this right you are triggering a truck rotation every time a curve changes direction / radius, don’t forget that track can change in the x and y (roll and pitch) as well
Best of luck with the project, I couldnt get calculated position to do what I needed.
Cheers
Paul G
Well with the roll and pitch could also be changed based on the dummy object. You’d just have to rotate them the right/correct way. In the end, there may be a lot of modular track pieces, but this would also lead to the (I feel) best amount of customization.
Like I said still an idea, but hopefully it might be another way to get a train functioning in a realistic manner. At least someday.