Space Engineers

Space Engineers

686 ratings
Gravity Collector - pulls and collects floating objects
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Block, Script
File Size
Posted
Updated
1.908 MB
Mar 5, 2015 @ 4:15am
Sep 6, 2019 @ 1:09am
16 Change Notes ( view )

Subscribe to download
Gravity Collector - pulls and collects floating objects

In 1 collection by Digi
Digi's Space Engineers mods
46 items
Description
This adds 2 collector blocks (large and small) which pull floating objects (ore and dropped items) that are in front of them.
This does not pull mass blocks or players.


Small variant pulls in a 30deg cone up to 40m, max power usage (at 200% strength and max range): 300 kW.
Large variant pulls in a 25deg cone up to 60m, max power usage (at 200% strength and max range): 600 kW.

Both versions pull up to 5000kg of mass with the same velocity (scaled by Strength slider), it can pull beyond but the force stays the same and will pull slower.

Objects are pulled towards where the collector will be depending on its velocity, it can still miss if you try to make it miss.

Conveyor ports on these blocks differ from vanilla, small variant has a big port on the back instead of a small port and large variant has ports on 2 sides.


Credits
Idea from: Request: Cone gravity generator.[forums.keenswh.com]


Related mods
Natural Gravity - make asteroids have ship-pulling gravity
Enhanced Gravity Generators - pulling ships together, literally


mod io?
Please read[gist.github.com]
314 Comments
El Capitan Kirk Aug 23, 2023 @ 6:21am 
For clarification, a mod at the top of the active mod list overwrites any mod that is below it if they change the same thing. They could improve the UI a little bit...
El Capitan Kirk Aug 22, 2023 @ 7:51am 
Here's where this mod's files are on my pc for reference:
H:\Games\Steam\steamapps\workshop\content\244850\402858936\Data\Scripts\GravityCollector

And here's where my local mods need to go:
C:\Users\YourUserNameHere\AppData\Roaming\SpaceEngineers\Mods

Just copy the "402858936" folder to the local mod folder and rename it to something you'd recognize. It will show up in game as whatever you rename this folder to.
El Capitan Kirk Aug 22, 2023 @ 7:42am 
@MrEdinLaw: Find "GravityCollector.cs" in this mod's folder and edit the values there at the top with a text editor. Any changes you make will be undone if the mod updates unless you copy this mod to your local mod folder and edit it there. Make sure your edited version loads after the original, or replace the original with your edited version.

These are where the range values are set; 40 for small grid and 60 for large:
public const float RANGE_MAX_MEDIUM = 40;
public const float RANGE_MAX_LARGE = 60;

There are other values you can change there, but the only ones I'd touch are the angles that determine how wide a cone the block will attempt to vacuum up items from. Those lines look like this:

coneAngle = MathHelper.ToRadians(30);

If you change the angle of the vacuum cone, don't go above 90 or items will get stuck on the sides that don't vacuum and just stick there. I'd recommend not going higher than 75.
MrEdinLaw May 19, 2023 @ 3:20pm 
Any way to add it a bit more range?
Digi  [author] Jan 8, 2023 @ 1:58am 
It has no reason to clash, it doesn't use anything from vanilla weapon code and it's a collector, not a sorter that WC uses as weapon platforms.
OGxSnakexEyez Jan 7, 2023 @ 4:34am 
will this mod clash with weapon core and its vast collection of supported mods do you know?
Digi  [author] Jul 11, 2022 @ 3:57am 
Nothing I can do about that, I'm not hosting it :P
Von Ryan Jul 10, 2022 @ 4:38pm 
Cant download. Others download no issues, some like this wont.
kullenberg83 Jan 9, 2021 @ 9:21am 
build more collectors for more pulling power, 2 next to eachother will pull allmost anything lose componants along the ground to the collector on earth gravity. With 4 you almost pull componants from the grid it self:D
Digi  [author] Dec 18, 2020 @ 11:33am 
I tried ejecting steel plates from a small grid connector (steel plates are too large for ejector) and a grav collector picked every single one.
Did you check if the grav collector's inventory was full?

If that's not it then I'm not sure what's going on, if you can reliably replicate it then set it up in an empty world and link it here :P