1. #1

    toggle button

    Im trying to make a LB button toggle switch that activates a set value event for a rotation physic joint. i got it to work using a impulse clamp filter but i have to wait like 10 seconds before i can re-activate it again. im wondering how to make it where i can activate it with out waiting. If you got any ideas please respond. thanks
    Share this post

  2. #2

    Re: toggle button

    I think the clamp is 10 sec by default. Cant you just lower the wait ticks?
    Share this post

  3. #3

    Re: toggle button

    Originally Posted by DeadEXit
    I think the clamp is 10 sec by default. Cant you just lower the wait ticks?
    I did but if i make them 0. It only goes one way. Im messing with it to see what i can figure out.
    Share this post

  4. #4

    Re: toggle button

    I think setting it to 0 kinda cancels out the clamp.Depending on your setup, the clamp needs a certain amount of ticks to release all impules. Do you have any delay filters involved?
    Share this post

  5. #5

    Re: toggle button

    No delays but ill give it a shot
    Share this post

  6. #6

    Re: toggle button

    I got it to work kinda. by useing 6 clamp filters 3 on each side. ( if u get what i mean ) and have them off set from each othe. 1 impulse is set to 90° 2 set to 0° 3 set to 90° 4 set to 0° ect. it works fine . if u press the LB button over 6 times in 1.5 seconds it will delay.

    if you can find a better easier way let me know.
    Share this post

  7. #7

    Re: toggle button

    Im supprised that one of the pros hasnt responded by now.
    Share this post

  8. #8
    mutetus's Avatar Trials Developer
    Join Date
    Dec 2013
    Location
    The land of fin.
    Posts
    859

    Re: toggle button

    Not sure what you exactly want, but this is how you can change a value in the last variable data source between two preset values (0 and 90) with LB and you must release the button between changes
    Share this post

  9. #9

    Re: toggle button

    Why do you have the 2 VDS's at the top? Just put one of the 2 numbers into the Generic Filter's second value.
    Share this post

  10. #10
    mutetus's Avatar Trials Developer
    Join Date
    Dec 2013
    Location
    The land of fin.
    Posts
    859

    Re: toggle button

    Because if I have the value in the set value event and the filter and decide to change the other value I'll need to change it in only one place. Time saved. (just imagine if you had 100 of those would you like to select each filter and change the value?)
    Share this post