Profile image

how does landing gear funky trees delay and stuff like that work?

40.5k ALRX  2.8 years ago

Intro

I've been working on my SU-34 landing gear and I don't really understand how the funky trees work. I really hope someone could explain to me how the funky tree delays work, or can provide me with a code that can be easily tweaked to adjust the landing gear delay time before going up and before going down?

Code That I use

Landing Gear Doors:
-clamp01(ceil(smooth(clamp01(GearDown), 0.22)))+1

Only delays when the landing gear is going up by quite some time

Landing Gear:
clamp01((smooth(LandingGear, 1) -0.7) / 0)

Only Delays when the landing gear is going up but just by a bit

Landing Gear hinges that allow the landing gear wheels to turn:
clamp01((smooth(LandingGear, 1) - 0.000001) / 0)

Only Delays when the landing gear is going *down8 by a short time

In short

Can someone provide me with a code that can be easily tweaked to adjust the landing gear delay time before going up and before going down?

Screenshots/Teaser for the SU-34

Landing gear doors

Anyways thanks for helping! :)

  • Log in to leave a comment
  • Profile image
    40.5k ALRX

    @YoDudeChase thanks!

    2.8 years ago
  • Profile image
    4,038 YoDudeChase

    Apologies I wasn't active to respond to this when you posted it, I didn't have the answer anyway. Good luck with the build :)

    +1 2.8 years ago
  • Profile image
    13.8k Kangy

    @SnoWFLakE0s Ah I see, thank you

    2.8 years ago
  • Profile image
    66.7k SnoWFLakE0s

    @Kangy
    .
    Not necessarily time, but instead the smooth section's output. Sort of.

    +2 2.8 years ago
  • Profile image
    13.8k Kangy

    @SnoWFLakE0s With the demos graph, I presume the x-axis is the time, and the y-axis is the input / output?

    2.8 years ago
  • Profile image
    40.5k ALRX

    @Fox00One thanks
    @tucan ur welcome

    2.8 years ago
  • Profile image
    40.5k ALRX

    @GuyFolk thank you for your help

    2.8 years ago
  • Profile image
    41.2k Phox

    Oh wow

    2.8 years ago
  • Profile image
    100.0k GuyFolk

    @ALRX
    You can use

    GearDown ? (floor smooth clamp01 for deploying gear) : (floor smooth clamp01 for retracting gear)

    +1 2.8 years ago
  • Profile image
    11.2k tucan

    @ALRX thanks

    2.8 years ago
  • Profile image
    40.5k ALRX

    basically how to make a delay before the landing gear goes down?

    2.8 years ago
  • Profile image
    40.5k ALRX

    @GuyFolk I already understand the delay before the landing gear goes up, but I still don't understand how to make the delay before the landing gear goes down from the youtube video

    floor(smooth(clamp01(LandingGear), 1/0.5))

    2.8 years ago
  • Profile image
    100.0k GuyFolk

    @ALRX
    I used exactly what SnoWFLakE0s said.
    Although my code is a bit messy lol.

    2.8 years ago
  • Profile image
    40.5k ALRX

    @SnoWFLakE0s thanks for your help I will look into that!

    2.8 years ago
  • Profile image
    66.7k SnoWFLakE0s

    Here's something for doors that open then also close:
    https://www.desmos.com/calculator/j3wlgr4mui

    Generally you use smooth() to create a linear progression then add some sort of comparative operator to check when that progression reaches a certain threshold so you get the right sync times.

    You could also change up this code format to work with GearDown.

    +1 2.8 years ago
  • Profile image
    40.5k ALRX

    People who wished to be tagged
    @Fox00One
    @tucan
    @CaptainSquadronLeaderX
    @WiniMii
    @Gro

    2.8 years ago
  • Profile image
    40.5k ALRX

    @YoDudeChase
    @SnoWFLakE0s
    @GuyFolk
    I think you guys can help me

    2.8 years ago