• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Shaking Gauge Needles at Idle

Messages
683
Country
us-california
I would like to include this feature in my current project. I have a start using the rocker arm animation, but it needs to fade as the rpm increases. Any advice on how would be appreciated.
 
Last edited:
Subtract a factor of the RPM from the code used for the rocker arm animation. I.e. as an example let's say the rocker arm animation code needs to vary from the normal value to 0 when the the RPM value varies between 1 and 2500. In other words, when the RPM is 1 you need the rocker arm animation to be multiplied by 1 (shakes a lot). But (for example) when the RPM is 2500 you need the rocker arm animation be multiplied by a value of 0 (doesn't shake at all). So:

RPM is 0 to 2500
So if RPM is 1, rocker arm animation value is animation code * (1 - 1 * 0.0004) = animation variable * 0.9996 (close to normal value).
If RPM is 2500, rocker arm animation value is animation code * (1 - 2500 * 0.0004) = 0

So the rocker arm animation in this case should be [animation code] * (1 - RPM * 0.0004)

In RPN this would be something like

XML:
...
if{ (A:GENERAL ENG RPM:1,degrees per second) (E:ABSOLUTE TIME, second) * 360 % 3.6 / 1 (A:GENERAL ENG RPM:1, rpm) - 0.0004 * * }
...

This has not been tested.

Hope this helps,
 
Thanks Tom. The concept makes sense. I tried the code but it is not working in that I have no movement at all. I'm playing around with it now.
 
Back
Top