Profile image

How to inverse the smooth?

8,049 Jauntyccmbr  3.8 years ago

smooth(Activate1, 1/10) <basically make this the opposite, wait later activate now

I need it like that but i dont want it to wait before activating i want it to activate then when i deactivate ag1 it will wait then gets retracted

Any help would be greatly appreciated

  • Log in to leave a comment
  • Profile image
    8,049 Jauntyccmbr

    Oohh new learns thankyouu:) @spefyjerbf

    +1 3.8 years ago
  • Profile image
    162k spefyjerbf

    Sure! So essentially what that term does is that it sets the smooth rate according to whether AG1 is true or false. If ag1 is true, then the smooth rate is 10^10, which results in the function moving instantaneously. When ag1 is false, the function recedes according to the rate that you gave me :)

    3.8 years ago
  • Profile image
    8,049 Jauntyccmbr

    This would be so useful to those who want to make specific mechanisms @spefyjerbf

    3.8 years ago
  • Profile image
    8,049 Jauntyccmbr

    OHMY IT WORKS THANKYOUUU Also question the ,Activate1 pow(10,10) : 1/10)) what does that mean? I get the first part @spefyjerbf

    3.8 years ago
  • Profile image
    162k spefyjerbf

    So a delay to deactivation? Definitely possible, though I lost the code. Shouldn’t be too hard to remember though. Let’s try this:
    .
    ceil(smooth(clamp01(Activate1), Activate1 ? pow(10,10) : 1/10))
    .
    Lemme know if this works or not. It’s been a while since I worked with this kind of delay

    3.8 years ago
  • Profile image
    8,049 Jauntyccmbr

    @spefyjerbf is there a way to inverse smooth??

    3.8 years ago