Limitations

I successfully limited the range that one anchor can connect to another anchor. Right now I have it set at 4 meters, but that could all change.

I thought it was going to be a headache but the solution grew upon the solution to a previous issue. At one point the algorithm to find the nearest anchor was not working and I found out that when it was looking for the nearest anchor, it was including itself in that search. So, it always pointed to itself as the nearest. As soon as I added the condition that the distance between itself and the nearest must be greater than zero, the problem was solved.

Going off of that I added another condition that the search could not include any anchors could not be greater than 4000 units (roughly 4 meters) away.

But now the limitation to the cable, isn’t a limitation at all!

Math is Fun!

I spent last night working on some math for the cables. I wanted to have the cable hang realistically given it be a set length.

After some research I found that this equation will determine the distance a cable will sag.
maths
d = the sag distance
L = the length of the cable
S = the span between the anchors

the blueprint ended up looking a little convoluted, see?
maths2

The result worked pretty well, but at the extremes it seems that my math isn’t exactly perfect because the length of the cable appears to shorten.
cableSagDemo

Frustrations

Now my frustrations lie in two aspects at the moment.

  1. There are two copies of the cables generated because there are two anchor nodes are both building the cables at the moment, I need to find a way to only have one generated per pair.
  2. I can not for the life of me get the engram to show up in the craftables menu in game. The engram shows up in the engram list and can be learned, but no luck after that.

Thanks for reading!

As always, I would love to hear your feedback!