I’m spawning instances of an object eg. batteries, bulbs, resistors etc. I’m using the welding of collision objects to join components together. My two issues are
How to address the individual instances that are colliding, to visually weld them so they overlay.
I also need to work out how to identify whether there is the valid components welded together to form a circuit. I have had the idea of adding each connected game object to a list and running a very large if statement to see if there is the right components in it. However, this is not very reasonable and I was wondering what other ways there could be.