New Flight Model - Unknown025/Flans-Mod-Plus GitHub Wiki

New Flight Physics Model

This will be enabled when config option NewFlightControl is set to true. Major Changes:

  • MaxThrottle is no longer used with this flight model as it better suits ground vehicles and helicopters. MaxThrust replaces this.
  • New Lift Equation
  • Mass implemented for acceleration and lift purposes

Currently not compatible with VTOL mode.

Lift

New lift equation LIFT = coefficient of (lift * ((speed^2)/2)) * wing area) / number of wings intact

  • Coefficient of lift is the Lift config option

  • Wing area is in square meters. You can apply the real world counterpart's for one wing or calculating it by getting the area of the top face of a wing hitbox, then dividing by 16. Here is an example of a wing hitbox from a large wing: SetupPart leftWing 90 -27 -4 -119 40 10 108 The "x" width is 40 and the "z" width is 108 divide each value by 16 to get meters. X = 2.5 and Z = 6.75. Mutiply to get the area. WingArea in this case would be 16.875. This number will get applied to the lift equation in game.

  • The config option TakeoffSpeed is the speed in Blocks/tick where lift will generate enough to get the plane off the ground Multiply this by 20 to get blocks/sec So a TakeoffSpeed of 0.5 is really 10 m/s Below this speed, lift exponentially drop off below this speed until you are just falling out of the sky. (no more landing within like 10 blocks, make a runway)

Aircraft Performance

  • MaxThrust is the amount of thrust when throttle is at 100%. Whatever throttle setting the plane is at determines thrust 50% throttle will yield 50% of the MaxThrust value. Value is in 10s of kgf So MaxThrust 50 is truly 500kgf thrust
  • Mass is in kg At high pitch values it is used to determine weight The ratio between thrust and mass will be what determines performance. If Thrust/weight is greater than 1, vertical acceleration is possible. At a value of 1, plane will hover when vertical Thrust/mass will determine acceleration performance otherwise.

High Speed Flight

  • Overall speed limit when the new system is enabled is raised from 2.0 to 3.5 or 70 Blocks/sec MaxSpeed will override this however. If MaxSpeed is set to 1.5, you cant go faster than 1.5 blocks/tick The new system just allows MaxSpeed to be set above the old 2.0

  • Supersonic is a config option that determines if a plane is able to go at speeds higher than 2.0 blocks/tick(sound barrier) If true, plane will have no problems getting above this speed. If false and you go faster than this speed, controls will lock up and plane will have a drastic pitch down motion until you go slower than 2.0 blocks/tick or you crash. In the real world this is known as "Mach-Tuck"