Space Engineers

Space Engineers

ResourceNodes
Numbers...
(Taken from `MyDrillBlock.cs`.)

This would seem in indicate that the drills will scan for ore down to 100m (30 * 3 + 10).

```cs
//get all the materials
for(int i = 0; i < 30; i++)
{
List<MyVoxelBase> detected = new List<MyVoxelBase>();
Vector3D position = Block.PositionComp.GetPosition() + Block.PositionComp.WorldMatrixRef.Down * i * 3;
BoundingSphereD boundingSphereD = new BoundingSphereD(position, 10);
MyGamePruningStructure.GetAllVoxelMapsInSphere(ref boundingSphereD, detected);
foreach (var map in detected)
{
GetResources(position, map);
}
}
```

It also looks like you need to keep your drills 50m apart to avoid **SERIOUS** slowdown.

```cs
{
if (myOre != null)
{
double closest = double.MaxValue;
int close = 1;
foreach (var m in ResourceNode.Instance.Miners[myOre.MinedOre])
{
if (m != Block.EntityId)
{
double dist = Vector3D.DistanceSquared(ResourceNode.Instance.Locations[m], Block.PositionComp.GetPosition());
if (dist < closest)
{
closest = dist;
}
if (dist < 2500)
{
close++;
}
}

}
closest = Math.Sqrt(closest);
slowdown = (int)(closest < 50 ? 50 - closest : 1) + (10 * close);
}
}

```
< >
Showing 1-1 of 1 comments
Rümmler 25 Oct, 2022 @ 3:42pm 
Any luck figuring out what the difference between the blocks is, apart from more power consumption? The delivery rate on stone seems to be identical e.g.
< >
Showing 1-1 of 1 comments
Per page: 1530 50