Profile image

3 variable speed engine (FT)+ boost + 4 wheel steering+signalLight+low part double wishbone chassis (An2k)

1,182 An2k  4.0 years ago

My FirstCraft submission
>>>>This link<<<< is the upgraded version of this one


W.I.P. Do please improve upon it if you see fit. any suggestions is welcome.

•Default on Load speed @ 60kph (condition: AG1 or AG2 or AG1+AG2 not active) for high dunes
•AG1 medium topspeed @190-197 kph (condition AG2 not active)
•AG2 or AG1+AG2 engine unristricted maxing to 460 up (run out of tarmac)
•U can downshift by deactivating AG 1&AG2 etc.
•AG3-AG6 & AG8 is reserved nothing for now(Gyro not activated as default)
•AG7 headlights on activate
•to boost during defaultspeed or meduim (Pitch with launchcountermeasure together)(countermeasure ammo set to 0 but u can still use it and boost only posible if pitch IS NOT zero/neutral)
•Gyro Pivot turn = (launchcounrmeasure & Roll input together ( normal steering is not activated during using pivot)
•Gyro when flipped = hold lauchcountermeasure till right up
•steering = Roll(turn left right)
•4 wheel Diagonal steering = Yaw ( like a linechange in highways.. moves car diagonally)
•you can use normal steering with the diagonal one ..opposite direction turn faster ..same turn a bit
•Brake = Brake and airbrake deployed (airbrake auto deploys on a certain pitchangle needs rework)
•signal lights by input (note using diagonal steer during moving backwards lights direction is wrong ..and front signal light sometime still woks while moving back..needs rework)

(just what i did)

for default speed
i want 60kph
google kilometers per hour convert to meters per second
60kph = 16.6667
base code is
Pitch * clamp ( 1 - GS/mpsResultHere , -1, 1)
so
Pitch * clamp ( 1 - GS/16.6667 , -1, 1) paste in engine's input and run game to get top speed result throttle for few seconds
result is 59kph... convert it again on google
resut is = 59kph in mps is = 16.3889 get difference from the first one and add result to first so 16.6667-163889=0.2778+16.6667= 16.9445
Pitch * clamp ( 1 - GS/ 16.9445 , -1, 1) paste in input to test if u get 60 test on game max speed is 60 on flat

for 2nd speed (AG1)
i want 190
190kph to mps = 52.7778 Pitch * clamp ( 1 - GS/ 52.7778 , -1, 1) rungameresult = 171kph
171kph in mps = 47.5 so 52.7778- 47.5 result+ 52.7778 = 58.0556
Pitch * clamp ( 1 - GS/58.0556 , -1, 1) rungame result 185
adjust the 1 by increments
Pitch * clamp ( 1.1 - GS/58.0556 , -1, 1) run ingame result= 200
Pitch * clamp ( 1.05 - GS/58.0556 , -1, 1) = 192
Pitch * clamp ( 1.04 - GS/58.0556 , -1, 1) = 191
Pitch * clamp ( 1.03 - GS/58.0556 , -1, 1) = 189
Pitch * clamp ( 1.035 - GS/58.0556 , -1, 1) = 190

just variable speeds on an IF Else statement ..condition structure i put up is messy but somehow worked just slap it on a single engine input(i use unedited 200 herspers engine..wheels also maxangularvelocity at default 300). the one i use with boost is more messy.warning my FT knowhow is very limited pls feel free to point out coding mistakes
Enginecode

just AGs variable speed no boost from launchcountermeasure

Activate1 = 1| Activate2 = 1 | (Activate1 = 1 & Activate2 = 1) ? (Activate1 = 1 & ! (Activate1 = 1 & Activate2 = 1) ? ( 2ndtopspeed) : Pitch) : (defaultspeed )

OR

with both AGs and boost counter measure (You can only use boost if pitch is not 0) see code on car engine

credits

@edensk on help on forum
@jamesPLANESii on help on forum
@Bogdanx for your codes on limiting top speed to study
@randomusername for your codes on limiting top speed to study
@singularmuon for that project titled almost ackermann steering hoping you guys can improve the code

testImage

test

Spotlights

  • BaNg 3.9 years ago

General Characteristics

  • Created On Android
  • Wingspan 8.4ft (2.6m)
  • Length 11.9ft (3.6m)
  • Height 5.3ft (1.6m)
  • Empty Weight 2,499lbs (1,133kg)
  • Loaded Weight 2,632lbs (1,194kg)

Performance

  • Wing Loading 439,839.3lbs/ft2 (2,147,483.6kg/m2)
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 1346

Parts

  • Number of Parts 69
  • Control Surfaces 0
  • Performance Cost 783
  • Log in to leave a comment
  • Profile image
    1,182 An2k

    Made on 1.9.....Got issues with the signal lights not working on the leftside since new update 1.10

    Pinned 3.3 years ago
  • Profile image
    1,182 An2k

    @Aviatorsunglasses thanks ..but idk if the FT in this still worked as intended since 1.10 ..take the signal lights code for example ..on this new update the left side dontwork..had to code to make it work maybe add/upload it if im not busy IRL..im still bored and uninspired still ..must be the pandemic ..im getting annoyed of it.

    ill check-out that truck later and thanks for the comment and vote

    3.5 years ago
  • Profile image

    @An2k trophy truck

    3.5 years ago
  • Profile image

    @An2k hey, could you check out my trophy truck?

    3.5 years ago
  • Profile image

    @An2k This is really good!

    3.5 years ago
  • Profile image
    1,182 An2k

    Ohh Thanks for the upvotes!!! Finally my voting is unlocked

    4.0 years ago
  • Profile image
    3,870 Hectord27

    Nice!

    4.0 years ago
  • Profile image
    1,182 An2k

    TY again ..I really hated that random uneven drag glitch
    Finally have submitted

    @edensk on help on forum
    @jamesPLANESii on help on forum
    @Bogdanx for your codes on limiting top speed on post for study
    @randomusername for your codes on limiting top speed on post study
    @singularmuon on that almost ackermann

    4.0 years ago