Profile image

Issue with Funky Trees with Airbrakes (Fixed)

234k jamesPLANESii  4.4 years ago

I have an input of clamp01(Brake) * (1 / GS) to get the air brake to make the same braking power at every speed, but it has a weird issue...

Even though when I debug the expression it works correctly, when I put the input into the air brake, the air brake just turns around 90 degrees on the hinges and doesn't do anything.

It's super weird... any help?

Here’s a link if you wanna try finding the issue.


Fixed

Clamping the (1 / GS) input made it work again.
It might be something to do with the fact that when you spawn the level you’re going exactly 0, so the input becomes infinite, breaking the input for the airbrake.

  • Log in to leave a comment
  • Profile image
    13.9k ChrisPy

    @jamesPLANESii waack

    4.4 years ago
  • Profile image

    Ok, I fixed it. I put a clamp on the 1/GS input and it started working again. Maybe because you start the level at 0 m/s, the input goes infinite and the game decides the input for the airbrake doesn’t work and it stops it from crashing the game. @FLOWRIDER0

    4.4 years ago
  • Profile image

    Yeah I want the braking power to be the same when you’re stopped too. @FLOWRIDER0

    4.4 years ago
  • Profile image

    Yea nah I don’t lol. But it doesn’t effect the input. @ChrisPy

    4.4 years ago
  • Profile image
    13.9k ChrisPy

    I don’t think you need to use clamp clamp on brakes messes it up

    4.4 years ago
  • Profile image
    37.2k V

    Because inputs are usually between -1 and 1, and you didnt clamp (1/GS) meaning you may be giving it an input higher than 1

    Also, the airbrake will always be taking the output of (1/GS) so you should somehow toggle the output of that

    4.4 years ago
  • Profile image
    37.2k V

    @jamesPLANESii try doing something along the lines of
    clamp01((Brake * 2) - ((1 / GS) - brake))
    (Note that this does nothing, this is just an idea)

    4.4 years ago
  • Profile image

    @WNP78 I think I found a bug. Airbrakes shouldn’t be in this position...

    +1 4.4 years ago
  • Profile image

    Didn’t work :/ @FLOWRIDER0

    4.4 years ago
  • Profile image
    37.2k V

    Set the minimum to 1

    4.4 years ago