aboutsummaryrefslogtreecommitdiff
path: root/puremapping/pmrepulsor_2d.pd
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2009-04-10 17:52:07 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2009-04-10 17:52:07 +0000
commit779b45410e8c76b2984d26823e97310c7601b38f (patch)
treec3fea5dab11bd7b6285f7764efc518657f626eb9 /puremapping/pmrepulsor_2d.pd
parentbf86048f7010a51cbfe50c9f417f7cf8dbb2b8c0 (diff)
initial commit of the puremapping abstraction collection
svn path=/trunk/abstractions/nusmuk/; revision=11004
Diffstat (limited to 'puremapping/pmrepulsor_2d.pd')
-rw-r--r--puremapping/pmrepulsor_2d.pd52
1 files changed, 52 insertions, 0 deletions
diff --git a/puremapping/pmrepulsor_2d.pd b/puremapping/pmrepulsor_2d.pd
new file mode 100644
index 0000000..f4b6ac4
--- /dev/null
+++ b/puremapping/pmrepulsor_2d.pd
@@ -0,0 +1,52 @@
+#N canvas 316 249 871 573 10;
+#X obj 31 34 inlet;
+#X obj 76 214 loadbang;
+#X obj 31 428 outlet;
+#X obj 76 240 pack \$1 \$2;
+#X obj 592 23 inlet;
+#X msg 592 70 setK lnk \$1;
+#X obj 685 24 inlet;
+#X msg 685 70 setD lnk \$1;
+#X msg 213 129 bang \, get massesPos out \, get massesForces out;
+#X obj 31 400 route out;
+#X obj 140 429 outlet;
+#X obj 140 401 route out;
+#X obj 31 376 route massesPosId massesForcesId;
+#X obj 31 354 msd2D;
+#X msg 132 89 forceX out \$1 \, forceY out \$2;
+#X obj 156 209 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 29 88 unpack f f;
+#X msg 29 112 posX grab \$1;
+#X msg 78 165 setK lgrab \$1;
+#X msg 94 134 posY grab \$1;
+#X obj 29 55 route grab grab_on force bang;
+#X msg 76 266 reset \, mass center 0 1 0 0 \, mass out 1 1 0.5 0 \,
+link lnk center out \$1 0 \, tLink damp center out 0 \$2 0 1 \, tLink
+damp center out 0 \$2 1 0 \, mass grab 0 1 0 0 \, link lgrab out grab
+0 0;
+#X connect 0 0 20 0;
+#X connect 1 0 3 0;
+#X connect 3 0 21 0;
+#X connect 4 0 5 0;
+#X connect 5 0 13 0;
+#X connect 6 0 7 0;
+#X connect 7 0 13 0;
+#X connect 8 0 13 0;
+#X connect 9 0 2 0;
+#X connect 11 0 10 0;
+#X connect 12 0 9 0;
+#X connect 12 1 11 0;
+#X connect 13 0 12 0;
+#X connect 14 0 13 0;
+#X connect 15 0 3 0;
+#X connect 16 0 17 0;
+#X connect 16 1 19 0;
+#X connect 17 0 13 0;
+#X connect 18 0 13 0;
+#X connect 19 0 13 0;
+#X connect 20 0 16 0;
+#X connect 20 1 18 0;
+#X connect 20 2 14 0;
+#X connect 20 3 8 0;
+#X connect 21 0 13 0;