Space Engineers

Space Engineers

163 ratings
[Deprecated] Planetary Dynamics - Re-Entry Heat, Drag, and Wings.
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block, Script, Other
File Size
Posted
Updated
486.497 KB
Nov 29, 2015 @ 2:02pm
Feb 8, 2018 @ 8:34pm
36 Change Notes ( view )

Subscribe to download
[Deprecated] Planetary Dynamics - Re-Entry Heat, Drag, and Wings.

Description
Deprecated

I apologize for any issues it may cause, but: This mod will no longer be receiving updates, and eventually will be removed from the workshop. This is largely due to focus on other projects, my un-medicated adult adhd, and a general lack of interest in updating a modification that is, well, "re-inventing the wheel."

In the mean-time you could begin using some of these other great mods:
DraygoKorvan's Aerodynamic Physics (Deadly Reentry + Drag + Flight) mod.
This is the gold standard for aerodynamic physics in SE. He has a well-maintained, feature rich mod with cross-mod integrations, a customizable experience using an intuitive text hud api. Integrating into weather, water mod, and many others. I highly suggest you upgrade to this modification.

Takeshi's Plane Parts mod.
This is a full featured mod that allows players the ability to produce their own custom-designed wings. The models look fantastic, and the mod comes with gear, gear housing, custom rotors, and air brakes.
(I have personally started using this mod over my own)

Basic Info

Planetary Dynamics is a mod that does just what the name implies. Provides more dynamic features to planets. Including Wings & Stabilizers, Drag, and Re-entry heating.

(NOTE: This mod includes a built in speed mod of 1000. This is because the atmospheric math is best done over base limitations. If you wish to use another speed mod, just add another in the list before this one, and it will overwrite the speed mod included.)


Wings & Stabilizers.

Wings work pretty simply, place them on the aircraft properly, and once you get up to speed inside a planets atmosphere they will begin lifting the aircraft upward. (This is "Lift" not a powerful drag model. Drag is implamented other ways, these pieces provide upward force while moving, not resistance.)
Meaning you dont need: Up thrusters.

Stabilizers are alittle different. They provide added "Lateral" drag to a craft. Basically meaning that they cut into the wind and keep your craft moving toward the nose. (You know, if you place them properly).
Which means your airplanes do not need those: Left, Right, Down thrusters.

Now something else that stabilizers do is their force is applied at the location they are placed, and not the center of mass. This means they will attempt to angle the craft toward the direction of flight, and in a hard turn, will provide that "resistance" which any real aircraft actually has while moving.
So basically, dont put stabilizers forward of the center of mass.


Drag.

Drag is the negative force applied to a craft in motion through an atmosphere determined by the thickness of the atmosphere, the speed relative to the atmosphere its in, and the crosssection of drag caused by the craft moving through it.
You gotta keep that engine running.

All of these factors are included. First the code runs a check through the grids bounding box, in all 6 directions. (Yes 6, needed for the next feature) and looks for blocks, once it finds one, it adds it to the cross section of that face, and moves on to the next row. Then it determines drag by the angle of the craft relative to its velocity, and applys a force depending on the crafts angle, crosssection for that face, and its speed.

With that said, the block check is only done again if the craft is changed. Say a block is removed, blown off, or added.


Re-Entry heating.

(which still needs alittle work)
Re-entry heating is... complex. It works kind of like this:

It applies heat only once over a certain speed, that speed changes depending on the atmosphere, but its currently between 400ms - 500ms. It then scales the heat according to the atmosphere level and the speed over the re-entry velocity threshold.
(I chose 400-500ms because of the fact that to orbit the earth like planet the player needs to be moving around 500-550 ms, and these number provide a nice burn effect without a whole lot of danger at those speeds.)

This heat is then applied to blocks, which will begin to slowly get more and more red. (Youll hear them changing color as seen in video) Dont worry yet, until your blocks glow fully red, they dont take damage.

Once the blocks are glowing full red, they will continue to "heat up". Its this surplus heat that determines the amount of damage they will recieve per second.

Dissipation of heat is determined by the atmosphere that a vessel is in. Currently at ground level you can expect it to bleed off around 20% of its current heat a second. In the upper atmosphere or no atmosphere it will bleed off around 5% a second, and scales accordingly in-between.


This mod works great with the following list of mods:
Realistic Thrusters: By Digi.
Improved Thrusters: By Digi.


Bugs: Short Term
-Wings use borrowed construction models. Added to to-do list.
-Debris from the main ship may not return to its original color. This is fixable by just recoloring it. Or grinding it, which is more likely.
-Any color other than grey, black, and white may cause a rainbow effect as it heats up, will add a conversion algorithim to fix this soon.

Bugs: Long Term
-Drag can be "wonkey" at times. This is largely because thrusters provide so much force that the drag needs to be somewhat soupey.
-Currently there is no particle effect on re-entry. I did attempt to add some, but found that particle effects are not allowed in scripts. Im hoping that changes though, so I kept the version with particle code for safe keeping.


Credit:
-Digi: This mod was built initially off of Digis Aerodynamics mod. (Still using his models... I should fix that)
-Draygo Korvan: For assisting, and "showing" (I learned alot by looking at his code) me how to fix a few issues with multiplayer.
Popular Discussions View All (2)
5
Nov 21, 2016 @ 4:46pm
Log Error Report Thread
Dondelium
1
Feb 24, 2019 @ 8:55am
Any way to make lift/stabilizing less advanced?
HoonX
226 Comments
Kolljak Nov 30, 2022 @ 6:40pm 
can anyone tell me if it is broken. i am not seeing a "its is broken" so i am assuming it still works?
game plays 1230 Nov 28, 2020 @ 5:44pm 
just thank you now i get to burn my aircraft 24/7 when i try to fly with them
btaylor00744 Sep 20, 2020 @ 2:28pm 
Thanks for the info - yes please don't remove it until it actually breaks - I kind of like yours better for actual balance etc. You did great - I enjoyed having to add segments of wing material under the front to make some things fly. It felt like earning it.
Dondelium  [author] Sep 20, 2020 @ 7:54am 
FYI. I intend to leave the mod in its current state until a SE change breaks it.
Dondelium  [author] Sep 20, 2020 @ 7:52am 
You will need to rebuild your wings. That, should be all you need to do if you use those mods. Honestly handling flight mechanics will probably be easier with them.
btaylor00744 Sep 20, 2020 @ 1:45am 
I have so many things that use this mod - does the replacement you suggest make conversion easy or am I screwed?
hysteria May 8, 2020 @ 5:43am 
Is this mod interfere with the npc spawn mods like EEM or MES? Can it make the npc ships randomly lose control?
SeptimusCorvus Jan 22, 2020 @ 9:42am 
Hi sirius, I had the same issue and I seem to be able to solve it by removing a random block from the grid that's acting weird, then replacing it. It seems to be an issue when the game loads/when you spawn a grid with wings. Just delete/grind off any random bit and put it back, I think the mod re-calculates the amount of lift it needs (so it doesn't flutter like a leaf and land backwards and upside down (or struggle into the air and then want to fly down and upside down). It was driving me crazy for a few days, as i couldnt work out why my planes seemed to flip out at random (I'm using digis wing mod and planetary dynamics together, and my planes have suspension wheels on them. Grinding and welding a block to update the grid seems to work reliably, at least for me.

Hope this helps :)
SiriusBlack Nov 27, 2019 @ 7:41am 
I am having a few issues. I designed an aircraft that works really well half the time, then the other half of the time when i try to take off or just fly it flips and rolls like my gyros are on override. I originally used this mod for my plane. https://steamcommunity.com/sharedfiles/filedetails/?id=473571246 . But when i had the flipping issues i switched to using the wings from this mod. Either one causes me the same issues. I am tired of having to go back to previous saves to save my plane. Any help would be greatly appreciated.
Tsubasa Sep 25, 2019 @ 7:38am 
is it possible to achieve drag without using the wing blocks?