Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'add_animation' - shift stick now moves smoothly #3065

Merged
merged 2 commits into from
Jul 16, 2023

Conversation

ohlidalp
Copy link
Member

@ohlidalp ohlidalp commented Jun 26, 2023

This is only visual improvement - the engine shift time is not affected.
Applies to sources: shifterman1, shifterman2, shifterseq, shifterlin.
The transition speed is hardcoded at the moment - I'll try to use the 'shift time' parameter from 'engoption'. UPDATE: I'll leave it as-is for now.

Tested on Ford Mustang https://forum.rigsofrods.org/resources/ford-mustang-1979-1982.712/ - I'm sure PoLi would approve :)
fordMustangGT_smoothShift

CODECHANGES:
* gfxdata.h - just comments
* gfxActor.h - CalcPropAnimation() decluttered - pass PropAnim& instead of aliases. This was technical debt after splitting animators/prop anims.
* gfxActor.cpp - mostly find&replace updates of CalcPropAnimation()
Applies to sources: shifterman1, shifterman2, shifterseq, shifterlin.

Tested on Ford Mustang https://forum.rigsofrods.org/resources/ford-mustang-1979-1982.712/ - I'm sure PoLi would approve :)
@ohlidalp ohlidalp marked this pull request as ready for review July 16, 2023 17:50
@ohlidalp ohlidalp merged commit b427e49 into RigsOfRods:master Jul 16, 2023
2 checks passed
@ohlidalp ohlidalp deleted the prop_inertia branch July 16, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants