We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Has anyone solved these examples from Chapter 5 of Nature of Code? Example NOC_5_17: Use AttractionBehavior in conjunction with spring forces. From the chapter end exercise: In toxiclibs, use spring (or joint) connections between objects to control their interactions. Create and delete these springs on the fly.
Even if you haven't solved these, any tips would be helpful. I am looking to build a system where a system of circles are in random motion and come together to form linear chains. Using attraction/repulsion, they join into clusters. How do i restrict them to a linear conformation?
(The solutions for these aren't available at https://github.com/shiffman/The-Nature-of-Code-Examples or the downloaded examples in Processing.