Profile image

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

40.8k ALRX  3.4 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.8k ALRX

    @YoDudeChase thanks!

    3.3 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 3.3 years ago
  • Profile image
    15.4k Kangy

    @SnoWFLakE0s Ah I see, thank you

    3.4 years ago
  • Profile image
    67.1k SnoWFLakE0s

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

    +2 3.4 years ago
  • Profile image
    15.4k Kangy

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

    3.4 years ago
  • Profile image
    40.8k ALRX

    @Fox00One thanks
    @tucan ur welcome

    3.4 years ago
  • Profile image
    40.8k ALRX

    @GuyFolk thank you for your help

    3.4 years ago
  • Profile image
    41.4k Phox

    Oh wow

    3.4 years ago
  • Profile image
    105k GuyFolk

    @ALRX
    You can use

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

    +2 3.4 years ago
  • Profile image
    11.2k tucan

    @ALRX thanks

    3.4 years ago
  • Profile image
    40.8k ALRX

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

    3.4 years ago
  • Profile image
    40.8k 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))

    3.4 years ago
  • Profile image
    105k GuyFolk

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

    3.4 years ago
  • Profile image
    40.8k ALRX

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

    3.4 years ago
  • Profile image
    67.1k 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 3.4 years ago
  • Profile image
    40.8k ALRX

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

    3.4 years ago
  • Profile image
    40.8k ALRX

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

    3.4 years ago