We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
Answers
@Tian===
something like that???- if i understand well what you want....
@akenaton I spent an afternoon.... Thanks bro, i just nearly go insane... lol. btw, how did u post code on here ?
You copy you code, and then paste it here. Select you code, ctrl + o to indent, and leave a line above and below the code. It will get formatted like in akenaton's example.
@Tian -- for more info on how to post code to the forum, see: