Profile image

Specific inputs

8,762 BlunderBirb  4.4 years ago

Wasnt there a way to activate and deactivate things based on the amount of input given in? Like activating a rotor after hitting 45% VTOL
or starting a piston after -25% pitch, or have I just gone mad? if not, how did we used to do it? did it get removed or something?

  • Log in to leave a comment
  • Profile image
    8,762 BlunderBirb

    @spefyjerbf thanks a ton.

    +1 4.3 years ago
  • Profile image
    161k spefyjerbf

    Yep, this seems very much like a funky trees problem. For the 45% VTOL problem, the input would probably be clamp01(VTOL - 0.45). As for the -25% pitch, the input would most likely by clamp01(-0.25 - Pitch), assuming that you would want the piston to move when the pitch input goes to larger negative numbers. This code should work for the purposes described in this post, feel free to copy-paste the code that I provided.

    +1 4.4 years ago
  • Profile image
    8,762 BlunderBirb

    @spefyjerbf Oh god, is this in funkky trees now?

    4.4 years ago
  • Profile image
    161k spefyjerbf

    In short, yes! Here's a post describing how to use comparative logic. I can provide the code specific to your question at a later time if you need, too.

    +1 4.4 years ago