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
1.03k stars 178 forks source link

Trucks without an axle defined in the "axles" section are much slower #3190

Open whitespace-rebel opened 1 month ago

whitespace-rebel commented 1 month ago

Hi everyone,

recently I discovered that vehicles without an axle defined are much slower than those with an axle defined in the axles section. Even with fusedrag set to 0.0 and no wings the vehicles struggle to reach realistic maximum speed. Vehicles with an axle defined reach maximum speed without any problem.

EDIT: The mercedes-lp322-moving-van was not a good example to show the problem.

For demonstration you can use this car: https://forum.rigsofrods.org/resources/lotus-esprit-s1.1189/

Try the original one and remember the maximum speed you have reached.

Then in "LotusEsprit.car" comment out the axles section in lines 2721 - 2722 : ;;;;;;;;;;;;;;;;; ;axles ;w1(5 6), w2(7 8), d(sl) ;;;;;;;;;;;;;;;;;

Accelerate to maximum speed and compare it with your previous maximum speed.

With the axle defined I reach 219 km/h, without 160 km/h.

Another thing I noticed is, that the documentation says it uses the split differential if the axle is not defined in the axles section, while in game it says that viscous differential is used.

BTW if it is intended behaviour because of compatibility with existing trucks, we can close this bug report.

whitespace-rebel commented 1 month ago

I edited my original post because the previous example was not good to show the problem.

CuriousMike56 commented 3 weeks ago

Pretty sure this is intentional for backwards compatibility, torque has to be transferred differently on older heavier (10+ ton) mods. All vehicles should feature an axles section anyway.

whitespace-rebel commented 3 weeks ago

All vehicles should feature an axles section anyway.

I agree. Maybe this should be mentioned in the documentation (for new modders). Right now it says the axles section "allows more accurate distribution of torque among the wheels". I thought: "As long as I get all the power to the wheels, I dont care much about the distribution among the wheels." But it turns out some power is lost with the old model.