Install Steam
sign in
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Bahasa Indonesia (Indonesian)
Bahasa Melayu (Malay) BETA
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem









Please check and report problems, i hope it will still work at least as before.
Have a nice day.
Vector3D position = block.WorldMatrix.Translation;
float airDensity = 0f;
var planet = MyGamePruningStructure.GetClosestPlanet(position);
if (planet != null)
airDensity = (float)planet.GetAirDensity(position);
if (airDensity <= 0f)
return;
And replacing
var grav = grid.Physics.Gravity;
float gravspeed = grav.Length();
Vector3D force = -vel * speed / 100f * gravspeed / 9.8f * dragpower;
with
Vector3D force = -vel * speed * dragpower * airDensity / 100f;
From now and forever: its forbidden to use Air brakes in low air density
I think, if I fix this, I break something else.
Have a nice day.
Sorry.
Thank you for the clarification.
The internal behavior is more of a game trick than real aerodynamics. The script simply moves the plane forward and, when a wing moves downward, it adds an upward force at the center of mass. There is no continuous lift. If you lose one of two wings while flying straight, the script won’t react, because it doesn’t “know” that it should.
You can try something that is closer to what you want: build a plane, place the wings behind hinges, then in the wing settings change the force mode from “center of mass” to “grid.” This behaves more like what you described, but not in every situation. In vertical flight, gravity can make the plane roll and freak out. But it will not continious roll, it will more roll left, right, left, right, ...
I can confirm this mod works with other thruster and wing mods—we run a heavily modded airplane server without issues. Most wing mods calculate lift similarly: lift is based on total wing area, but the force is applied at the grid’s center of mass instead of being distributed across the wing surface, likely for performance reasons.
Because of this, if part of a wing is destroyed but the remaining wing area and thrust can still lift the mass, the plane will continue flying straight. There’s probably not much to be done about it. Many builds also use gyros, which further counteract asymmetrical lift. Fixing this would require a much more complex script that applies lift at the wing locations rather than the center of mass, similar to how the asymmetrical thrust mod works.