Profile image

Headache

5,575 Korzalerke2147483647  1.5 years ago
5 downloads
Unlisted Funky Trees Spain

A list of random codes I'll probably reuse a bunch of times.

Engines should have throttleResponse set to a large number (like 10000) so their speed can be set entirely through code.


Front wheel turn limiter


- Yaw * lerp(1, 0, GS / 15)

Speed: 15m/s (~30 knots)


Aileron input w/ stabilization


- smooth(Roll, 2) + smooth(Roll = 0 ? RollRate * 0.1 : 0, 0.75)

Roll speed: 2º/s
Stab. strength: 1/10 (the aircraft's roll rate)
Stab. speed: 0.75º/s


Rudder input w/ stabilization (also auto-yaw fix)


- smooth(Yaw, 1.5) - smooth(Yaw = 0 ? YawRate * (AltitudeAgl < 2.5 ? 50 : 0.1) : 0, 0.75)

Yaw speed: 1.5º/s
Alt. trigger: 2.5m (should be the AltitudeAgl while on ground)
Stab. strength: 50 or 1/10 (the aircraft's yaw rate)
Stab. speed: 0.75º/s


Multi-phase flap


- smooth(clamp(floor(VTOL * 2) / 2, -1, 0), 1.5)

Phases: 2 (repeated once)
Speed: 1.5º/s


Engines


Visual engine

  • max(EnginePower, RevThrust) * 10

True engine

  • smooth(Throttle * clamp01(!Activate1), 1 / 10) * 0.1

Reverse thrust engine

  • smooth((GS < 15 ? 0.5 : 1) * clamp01(Activate1), 1 / 10) * 0.1

ActivationGroup: 1 (repeated once)
Speed: 15m/s (reverse thrust is more powerful when speed is above this)
Engine spool-up time: 10s (repeated once)

General Characteristics

  • Created On Windows
  • Wingspan 1.6ft (0.5m)
  • Length 3.3ft (1.0m)
  • Height 3.3ft (1.0m)
  • Empty Weight 595lbs (270kg)
  • Loaded Weight 595lbs (270kg)

Performance

  • Wing Loading N/A
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 385

Parts

  • Number of Parts 3
  • Control Surfaces 0
  • Performance Cost 7

This post is unlisted and upvoting is disabled.