RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
990 stars 175 forks source link

Add rot_yxz for SR road rotations Y then X, Z #3131

Closed cryham closed 3 months ago

cryham commented 4 months ago

This fixes for me road roll angles. Like you said, they were bad. Yaw was only working ok. Before: 0237`` After: 22_18-08-09 Track has this road TestC1-Circle-road.tobj, it has a circle with all points: -16, yaw, 0 TestC1-Circle-road.txt This would be important for SR tracks roads, mainly for better bridge entries.

CuriousMike56 commented 4 months ago

Please check other maps with default roads (North St Helens, Small Island, etc)

cryham commented 4 months ago

Agh. Okay so this isn't so simple. Since this is for all .tobj, and there were x and z rotations != 0 there, it goes somewhat bad there. So the solution would be to leave it as it was and add this as a different option for SR roads only.

Ok I think easiest will be a new command line that will switch to this way only in SR files. in bool TObjParser::ProcessCurrentLine()

cryham commented 4 months ago

Okay possibly like this. I'll check it tomorrow.

cryham commented 4 months ago

Right. It works as before now. And with rot_yxz put in .tobj it works new way for SR.