Space Engineers

Space Engineers

Orbital Drop Position Calculator
25 Comments
MegaMick 17 Jan @ 12:12pm 
+1 for planet updates plz xD
Fuchs Tairn 25 Jan, 2024 @ 2:50am 
you need to change line 168 to output color too, i made it like: return $"GPS:{name}:{Position.X:#.##}:{Position.Y:#.##}{Position.Z:#.##}:#FFFF9900"; copy to clipboard wouldnt work without a color.
==>KT<== JudgeKane 16 Mar, 2023 @ 8:29am 
+1 for Pertam adding :-)
Th98ioozuopos 9 Jul, 2021 @ 3:47pm 
Can you make a script or another part to this one that takes in account of velocity of desired object to drop from a said position in or out of gravity till it hits gravity as long as it maintains the exact speed till it reaches gravity and will take in account of mass of ship to predict how fast it will accelerate till it hits ground and pinpoint where it will hit.

Like say you were orbiting a planet at a speed of 200m/s at lets say 0.75g and dropped an escape pod down to the surface, could you make a script that could pinpoint exactly where its going to hit.

and of course have variables that can be changed manually depending on the planet, gravity-of-planet, gravity-where-stationed, and velocity, etc. that way people can use it on any sort of planet modded or vanilla?
Âmøur 12 Apr, 2021 @ 7:46am 
Is it posible to update for Petram planet?
HLK 4 May, 2020 @ 2:36pm 
You can find the coordinates in the Sandbox.sbc in your savegames folder in the <MyObjectBuilder_SessionComponent xsi:type="MyObjectBuilder_WorldGenerator"> object
HLK 4 May, 2020 @ 2:33pm 
To add support for Triton you need to add two lines:

after
double[] planetTitan = new double[]{36384.5,226384.5,5796384.5,9785,0.25};
add
double[] planetTriton = new double[]{-284463.5,-2434463.5,365536.5,48151.8,1.0};

after
planetsList.Add(new PlanetData("Titan",new Vector3D(planetTitan[0],planetTitan[1],planetTitan[2]),planetTitan[3],planetTitan[4]));
add
planetsList.Add(new PlanetData("Triton",new Vector3D(planetTriton[0],planetTriton[1],planetTriton[2]),planetTriton[3],planetTriton[4]));
blm1123581321 21 Oct, 2019 @ 2:26am 
Does this work properly if I edit the gravity falloff of planets on the world?
Delebre 11 Sep, 2019 @ 2:28am 
I uploaded a fixed version which takes care of the compile issues:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1860078981
Megakole 25 May, 2019 @ 10:22am 
Is there a way to make this or does it currently work with kinetic rounds like gravity railguns or would it be just as simple as pointing the gun straight down
IraGfC 20 Mar, 2019 @ 11:58am 
Is there a way to omit LCDs from the script? Several of my LCDs keep getting changed into the script's data display, but they do not have anything typed into the custom data tab.
filipe 1 Jan, 2019 @ 6:03am 
awesome!
supersquid2000 9 Aug, 2018 @ 8:25pm 
This would be nice to use in reverse for calculating transport coordinates for the transporter mod. One to beam down......
kendall 30 Jul, 2018 @ 9:40am 
this is the best. I assume. Haven't actually tried it yet. But good job!
Hawkeye 29 Jul, 2018 @ 4:36pm 
Nice! I was just making an epic dropship and this is just perfect for it.
Lokii 22 May, 2018 @ 12:25pm 
@Sunoko Ahhhhh, i gotcha, very nice, I like the way you did that, I'm definitely a fan of your work

If i ever get around to porting my script from python to c# for in-game use I'll have to add some extra functionality so mine isnt too similar to yours, perhaps i'll add orbital calculations for sat placement or something, in any case, great job on this script
commie._.tears 14 Apr, 2018 @ 11:54am 
Is there any way to make it trigger something when it gets to the desired coordinates?
. 14 Apr, 2018 @ 7:00am 
Thank you
Sunoko  [author] 14 Apr, 2018 @ 5:34am 
@. LCD support Added. Please put any LCDs and write "CalcLCD" into Custom Data.

@Loki-Reaper Variable that necessary for calculation (gravity,planet position etc) are entered in the script, we can find them in SANDBOX_0_0_0_.sbs in the save data folder. And we can find the formula in the SE wiki article.
So this script only work for vanilla planet.(We can adding new planet data to this script by appending it to PB custom data, but I could not find the variable about customer planet.)
Lokii 13 Apr, 2018 @ 1:27pm 
Haha,i've been outdone it seems, i have literally the exact same thing as this script but in python on an external editor, out of curiosity, how did your math play out ? Mine used known planet centers in a list that was read in from just a text file to create unit-vector, does this script only work if the planet is at 0,0,0 or does it detect the planet and grab its center?
commie._.tears 12 Apr, 2018 @ 5:01pm 
@luis.mendez6 ahh, yes, we can now drop nukes from orbit! HAHAH
. 11 Apr, 2018 @ 7:36pm 
I like it but I would like it if you could put it on an LCD
Lmecha 10 Apr, 2018 @ 9:53am 
good script, usefull on Role play worlds
Sir Luis 10 Apr, 2018 @ 9:17am 
im thumbing this up right now then bombs away!!!!!!
Sir Luis 10 Apr, 2018 @ 9:16am 
MMMMMMMMM i can drops bombs from outer space ?? with this?