Hi,
Here is a code i have written by learning Nature of code. bugs turn up as i try to modify a Spring system to be interactive. I try to use distance function to detect if the mouse click knots( any one in them) then drag it away. But the fact is once we run the code there are few of knots can be dragged away and if change is too dynamic the knots will overlap with each other causing some wired situation.In the image, huge bobbles are for the ease of checking if the mouse pressed inside one of them.(few of them are working)
is there any one can help to to fix it ? Thanks.
https://github.com/Zivcheung/processing questions/blob/master/question%20about%20basic%20toxiclibes%20spring%20system
or
