rigs-of-rods icon indicating copy to clipboard operation
rigs-of-rods copied to clipboard

Animators for transfer cases

Open ulteq opened this issue 6 years ago • 4 comments

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

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

ulteq avatar Feb 12 '19 16:02 ulteq

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

ohlidalp avatar Feb 15 '19 15:02 ohlidalp

How should transfer case animate?

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

ulteq avatar Feb 16 '19 16:02 ulteq

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)

ohlidalp avatar Feb 18 '19 14:02 ohlidalp

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...

JibranBaksh avatar Mar 01 '19 19:03 JibranBaksh