I have to create a simple Circuit simulator. I have figured out how to create almost all objects (like power sources and etc. ), but I can't figure out how to create wire object.
Wire functionality:
- connect two objects
- Select wire and manipulate it or delete it
Problem is, that i can't find a way how to draw the wire. DrawLine function would not work for me, because after drawing the line I simply can't manipulate it. So at this point I'm open for suggestions.
(If there are some mistakes, sorry, I'm not native English speaker)