Profile image

What does smooth and clamp do in foonkytree?

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

    OHHHH YESSS THANKYOUU<3 fixed one of the issues @jamesPLANESii

    +2 4.6 years ago
  • Profile image

    Oh add another line in the input section, and make it zeroOnDeactivate and make it true. That way, when you deactivate it, it goes to 0. Is that what you want? @Jauntyccmbr

    +1 4.6 years ago
  • Profile image
    8,049 Jauntyccmbr

    http://www.simpleplanes.com/a/DXtvlw/Tank-walker
    This is the thing im working on. I need the laser cannon to go back to its original place after when im done using it even tho the trim is up@jamesPLANESii

    4.6 years ago
  • Profile image

    Set it to clamp01(Activate3) @Jauntyccmbr

    4.6 years ago
  • Profile image

    Smooth let’s you adjust the speed of the rotator with a funky tree, and clamp clamps the minimum and maximum value between the ones you’ve said.

    4.6 years ago
  • Profile image
    8,049 Jauntyccmbr

    Last question. I need a rotator to go back to its place when i deactivate ag3 how can you do that? do you use smooth?@edensk

    4.6 years ago
  • Profile image
    8,049 Jauntyccmbr

    OOOOOHHHHH THE MORE YOU KNOWWW THANK YOJ SOO MUCH@edensk

    4.6 years ago
  • Profile image
    16.5k edensk

    clamp(x , min, max) basically limits the x.
    If you have clamp(Pitch , -0.5, 0.7), the value it will output won't be lower than -0.5 or higher than 0.7
    clamp01(x) is the abbreviation for clamp(x , 0, 1)


    smooth(x , rate) goes from 0 to x at a specific rate. The rate is the "units" per second.
    smooth(1, 0.5) will go from 0 to 1 at the rate of 0.5 per second, so it will take 2 seconds to get there.

    +13 4.6 years ago