Introduction
I just put the finishing touches to destruction. I put a few hours into a new addition yesterday, polished it today and put the finishing touches on the part of the code that determines the strength of a cube. They now lump together as intended, which I think looks pretty cool.
New Addition
The most recent addition to the system is detachment of cubes when building your ship. If there isn't a direct connection between a part of your ship and the Core, it will be flagged in edit mode, and detached if you enter flymode. This can of course easily be reattached by simply placing a block next to it.
General System
The entire system basically works by calculating g-force. Each cube will make a rough and lightweight calculation of how much force is being applied to it, if the force exceeds an arbitrary value, the cube will break off from the rest of the ship, and potentially even explode. The aforementioned threshold will be strengthened if a cube is surrounded by other cubes, which is how lumps are created.
Improvements
I have a few improvements in mind. For instance, the threshold isn't calculated according to the size of the object, it's simply an arbitrary number I provide, which is something I'd like to change. I will do this in a later version though. If I polished every feature as much as I possibly could, I would never be able to release anything, so I'm going to set destruction aside for now and move on to finishing serialization.
- Daniel Everland