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
988 stars 175 forks source link

Animators for transfer cases #2243

Open ulteq opened 5 years ago

ulteq commented 5 years ago

Something comparable to the difflock animator we already have for differentials.

Reference: https://docs.rigsofrods.org/vehicle-creation/fileformat-truck/#animators

ohlidalp commented 5 years ago

difflock animates like this: https://github.com/RigsOfRods/rigs-of-rods/blob/3455f533241df966008d6c6524c2af15c9e94cbd/source/main/physics/Beam.cpp#L1964-L1970

How should transfer case animate? Possibly:

2wdLo -> 1.0
2wd -> 2.0
4wd -> 4.0
ulteq commented 5 years ago

How should transfer case animate?

I don't know. But it won't be easy. Especially when we also want to consider gear ratios.

ohlidalp commented 5 years ago

I don't know. But it won't be easy

I don't see why, there aren't so many variables to visualize, just mode and gear ratio IMO. We can add multiple sources:

source: tcase_mode -> 1.0 (2wd Lo) / 2.0 (2wd Hi) / 4.0 (4wd)
source: tcase_gear -> current gear ratio (0.0 if gears aren't active)
JibranBaksh commented 5 years ago

What if it was displayed with the transfer case mode then gear ratio.

2wd lo -gear ratio 2wd hi-gear ratio

Something of that nature. or close to how the current transmission modes are selected...