So i am trying to limit the top speed of a car engine, and if/else FT statements confuse me, so can someone show how i can limit the speed of a car engine? Ive been using GS < 30 ? 0 : Throttle
But it doesnt limit the speed to ~70 mph, it just goes to 150 mph, the max speed of the vehicle
FT help plzzzz [SOLVED]
37.2k V
4.0 years ago
change the HP
Do what Asteroid said. I’ve learned that a value of 20 limits it to around 46 mph.
You need to change the maxAngularVelocity on the wheels rather than the engine itself
Go to every powered wheel and set Maxangularvelocity to around 30, then raise or lower to your needs, Or using the engine set the input as
Input-clamp(GS, 0, 0)
The first zero being the desired speed and the second zero just add +1 to the first, so if I wanted to max out at 50m/s I would put
Input-clamp(GS, 50, 51)
orInput-clamp(GS, 50, 50.5)
Input
being throttle or whatever you want