Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

AttractionBehavior in conjunction with spring forces in toxiclibs

$
0
0

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.


Viewing all articles
Browse latest Browse all 2896

Trending Articles