aboutsummaryrefslogtreecommitdiff
path: root/examples/17_rnd_mouvmnt_and_obstacles.pd
blob: 4a2edfc0fa65f5eeeaee4e2344993c9325119fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#N canvas 29 57 762 481 10;
#X obj 18 182 t b b;
#X obj 18 134 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 18 155 metro 50;
#X obj 107 138 loadbang;
#X obj 433 139 fluide_mass;
#X msg 56 65 0 \, destroy;
#X obj 22 93 gemwin;
#X msg 22 40 reset \, create \, 1;
#X obj 18 446 s mass;
#X obj 346 141 gemhead;
#X obj 346 164 sphere 0.7;
#X obj 118 187 s reset_mass;
#X msg 107 163 bang;
#X obj 443 149 fluide_mass;
#X obj 453 159 fluide_mass;
#X obj 463 169 fluide_mass;
#X obj 473 179 fluide_mass;
#X obj 483 189 fluide_mass;
#X obj 493 199 fluide_mass;
#X obj 503 209 fluide_mass;
#X obj 513 219 fluide_mass;
#X obj 523 229 fluide_mass;
#X obj 533 239 fluide_mass;
#X obj 543 249 fluide_mass;
#X obj 553 259 fluide_mass;
#X obj 534 138 fluide_mass;
#X obj 544 148 fluide_mass;
#X obj 554 158 fluide_mass;
#X obj 564 168 fluide_mass;
#X obj 574 178 fluide_mass;
#X obj 584 188 fluide_mass;
#X obj 594 198 fluide_mass;
#X obj 604 208 fluide_mass;
#X obj 614 218 fluide_mass;
#X obj 624 228 fluide_mass;
#X obj 634 238 fluide_mass;
#X obj 644 248 fluide_mass;
#X obj 654 258 fluide_mass;
#X obj 664 268 fluide_mass;
#X text 283 49 the mouving particules don't interact each other;
#X text 283 65 they interact with 4 lines (the border of the screen)
\, and with a central circle so they bonce on the obstacle.;
#X obj 107 285 iAmbient2D mass 0 0 3 3;
#X obj 43 308 iLine2D mass 3 -3 3 3 1000 0 0 1;
#X obj 53 332 iLine2D mass -3 3 -3 -3 1000 0 0 1;
#X obj 68 355 iLine2D mass 3 3 -3 3 1000 0 0 1;
#X obj 78 378 iLine2D mass -3 -3 3 -3 1000 0 0 1;
#X obj 43 417 iCircle2D mass 0 0 0 1 0 0 10;
#X obj 563 269 fluide_mass;
#X text 302 287 <- give random speed when starting the patch;
#X text 301 309 <- right border;
#X text 302 331 <- left border;
#X text 302 353 <- top border;
#X text 302 375 <- bottom border;
#X text 302 416 <- circular interaction in the center;
#X text 328 25 interactor to a collection of masss;
#X text 132 40 <- 1;
#X text 45 131 <- 2;
#X connect 0 0 8 0;
#X connect 0 1 42 0;
#X connect 0 1 43 0;
#X connect 0 1 44 0;
#X connect 0 1 45 0;
#X connect 0 1 46 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 3 0 12 0;
#X connect 5 0 6 0;
#X connect 7 0 6 0;
#X connect 9 0 10 0;
#X connect 12 0 11 0;
#X connect 12 0 41 0;