Space Engineers

Space Engineers

Not enough ratings
Gravity Generator Physics (Replaces Vanilla)
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block
File Size
Posted
Updated
9.373 KB
3 Apr, 2017 @ 1:43am
14 Mar, 2020 @ 3:31pm
5 Change Notes ( view )

Subscribe to download
Gravity Generator Physics (Replaces Vanilla)

Description
First, I'd like to thank Digi whose mod Enhanced Gravity Generators was the inspiration behind this one.

This mod changes how vanilla gravity generators work, in the following two ways:

1, The spherical gen has a reduced max range of 150m.
2. They pull/push grids (and get affected by asteroids/planets!)

Digi's gens also affect other grids, but there are two fundamental differences in how the forces are calculated:

Firstly, the distance between the gravity generator and the target grid affects the force; it's an inverse relationship, so when flying a ship into the edge of the gravity field you'll only see a weak effect, and closing on the gravity generator will increase the effect. I thought about using a more legit inverse square relationship but given fields are a max. 150m, the linear effect kicks in a little sooner which I think feels better.

The other difference is based on grid mass. Total gravitational attraction is based on the combined mass of the two objects, but the smaller object will display a greater effect as its inertia is less. So with this mod, whilst both the gravity generator's own grid and the "target" grid will move according to the gravity direction, the effect will be more noticeable on the grid with less mass.

That may be a bit confusing so here are some examples:
Larger grid with gravgen, smaller grid without - smaller grid moves faster, large grid slower
Larger grid without, smaller grid with gravgen - smaller grid moves faster, large grid slower
Two smallish grids, one with a gravgen - both move at the same speed
Two largeish grids, one with a gravgen - both move at the same speed

It's just like the way that both you and the Earth move in real life gravity... the total amount of movement is based on your mass + the Earth's, but the affect is more noticeable on you (assuming you have less mass than the Earth.)

Try it out on a singleplayer world with some replaceable grids :)

UPDATE: Now with voxel detection! Sadly I can't make the asteroids move, but grids with gravity generators will be pushed/pulled by any asteroids or planet surface that's within detection range. Handy for anchoring up against your favourite asteroid, or try having a couple of sphericals on the front of your ship set to -1g and they'll do their best to repel your ship from impact damage.

NOTE: This is based on my other mod https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=896646812 which adds two new blocks with all of the above effects, rather than modifying the vanilla ones (so you can have both types in your world.)
30 Comments
Korrd 7 Mar, 2021 @ 11:36am 
I tried this out today and the spherical generator works fine, but the regular generator doesn't seem to be affecting other grids. And of course, that's the one I wanted this mod for. :cubewink:
jetblade545 29 Jan, 2021 @ 12:42am 
a bit broken
BookBurner 6 Jan, 2021 @ 1:47am 
Question, is the performance better or worse than the vanilla artificial gravity?

Such as with multiple generators, artificial masses etc (gravity drives basically)
jonn19  [author] 27 Mar, 2020 @ 3:33am 
Yeah sorry Darian, I am a very intermittent player, let alone modder. It should be fully working again.
QuintusJ 26 Mar, 2020 @ 7:27am 
Works for me though I haven't tested extensively. The elevator is the only issue I've encountered.
Darian Stephens 26 Mar, 2020 @ 7:26am 
Wait, does this work again?
There were a couple of undocumented updates recently, but no mention of any changes anywhere.
jonn19  [author] 26 Mar, 2020 @ 3:19am 
QuintusJ could you use the other mod where my gravgens are separate blocks from the vanilla ones? That way you could use vanillas on your elevators and modded ones elsewhere. Mod linked just above.
QuintusJ 25 Mar, 2020 @ 8:14pm 
Using this breaks the VCZ elevators. Unleashes the wrath of Klang. Any way you could fix this?
Darian Stephens 27 Dec, 2018 @ 2:14am 
I don't know about that, but you can just stack generators; artificial gravity is additive.
Kaii 27 Dec, 2018 @ 12:13am 
Does anyone know if there's a mod or a way to make gravity generators have more than 9.807m/s gravity? I'd like to make a player cannon that uses gravity to fire a player, kind of like an ODST, towards a target, but I don't know any way to make the gravity move them fast enough.