Finally finished the electricity system in the game.
Electrical objects can now be connected to each other and powered by a power source. Just connecting everything through a menu felt too boring, so I also added proper cable placement directly on surfaces.
The cable actually runs from one object to another, and you can route it along walls, floors, and other surfaces. This way the connection is visible in the game world, and you can lay the cable however you want.
The system still needs some work, but the main part is already done. Now I can start adding generators, lights, different devices, and basically anything that needs electricity.
The cable system took some extra time because I wanted the cables to actually follow surfaces instead of just being a straight line across the whole room. In the end, it turned out pretty close to what I wanted.
Next I’ll be adding more electrical objects and seeing what else I can do with this system.