Profile image

FT help plzzzz [SOLVED]

37.2k V  4.0 years ago

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

  • Log in to leave a comment
  • Profile image
    25.9k OwO

    change the HP

    4.0 years ago
  • Profile image
    24.1k BagelPlane

    Do what Asteroid said. I’ve learned that a value of 20 limits it to around 46 mph.

    4.0 years ago
  • Profile image

    You need to change the maxAngularVelocity on the wheels rather than the engine itself

    +2 4.0 years ago
  • Profile image
    4,038 YoDudeChase

    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)or Input-clamp(GS, 50, 50.5)
    Inputbeing throttle or whatever you want

    4.0 years ago