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.
@jamesPLANESii waack
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
Yeah I want the braking power to be the same when you’re stopped too. @FLOWRIDER0
Yea nah I don’t lol. But it doesn’t effect the input. @ChrisPy
I don’t think you need to use clamp clamp on brakes messes it up
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
@jamesPLANESii try doing something along the lines of
clamp01((Brake * 2) - ((1 / GS) - brake))
(Note that this does nothing, this is just an idea)
@WNP78 I think I found a bug. Airbrakes shouldn’t be in this position...
Didn’t work :/ @FLOWRIDER0
Set the minimum to 1