Profile image

Rotator Delay Times

96 EnKei  2.9 years ago

Hello!
I got a question for the pros here. I am building an A-10 and had to resort to a custom landing gear. Anyone care to tell me how i can delay the rotator for the gear upon putting gear down so the doors have time to open before the gear comes down? Or maybe make it so the landing gear has a different speed going up than it has going down. I dont know , which path would you go?

  • Log in to leave a comment
  • Profile image
    28.3k goboygo1

    Yeah, For the doors, You may need to change the min/max on the rotator or invert it to get it to work properly.

    2.9 years ago
  • Profile image
    96 EnKei

    @goboygo1 okay will try to do so. Now the question i probably should have lead with: i do put this line of code in the Input for the rotator right?

    2.9 years ago
  • Profile image
    28.3k goboygo1

    Happy to help!
    And yes:
    Basically the function gives the output of 1 when the LandingGear is more than 0.
    (-1 if not)
    So if LandingGear starts at 0, as soon as it starts moving, the function will change its output from -1 to 1.

    Now that LandingGear is at 1, when you give the input to retract, LandingGear has to make it back to 0 to before the output changes back from 1 to -1, Causing the delay.
    Make sense?

    2.9 years ago
  • Profile image
    96 EnKei

    @goboygo1 thank you! Couldnt understand all the tutorials people have already given but yours is easy. But does it delay my rotator only one way? Because i need it to be delayed upon putting the gear down, not on putting gear up though

    2.9 years ago
  • Profile image
    28.3k goboygo1

    You can use smooth() to achieve this.
    Essentially, You need to have the landing gear input smoothed so it isn't instant, Then put a "greater than" function so that it moves the rotator once the slowed input has reached a certain value.
    Something like:
    smooth(LandingGear ,1) > 0
    You will probably have to do some thinking about what numbers you need, And weather you need a ">" or a "=", But if you understand the concept you should be able to figure it out.

    2.9 years ago