aboutsummaryrefslogtreecommitdiff
path: root/examples/35_gravitation.pd
blob: 53b9520a862246fdd29392e5337c7d3b86cffe99 (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
#N canvas 101 91 564 699 10;
#X declare -lib Gem;
#X obj 19 175 t b b;
#X obj 19 98 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 19 219 s mass;
#X msg 243 158 0 \, destroy;
#X obj 210 184 gemwin;
#X msg 210 138 reset \, create \, 1;
#X obj 164 589 gemhead;
#X obj 164 612 translateXYZ;
#X obj 153 562 unpack s f f;
#X obj 164 636 sphere 0.05;
#X obj 209 353 gemhead;
#X text 52 95 <- begin;
#X obj 209 400 sphere 0.25;
#X text 191 38 Gravitation exemple;
#X obj 184 485 tSquare2D -4 4 -4 4;
#X obj 184 508 sel 0;
#X msg 184 531 reset;
#X obj 153 273 loadbang;
#X obj 153 323 iCircle2D foo -1 0 0 100;
#X obj 209 376 translateXYZ -1 0 0;
#X obj 351 354 gemhead;
#X obj 351 401 sphere 0.25;
#X obj 351 377 translateXYZ 1 0 0;
#X obj 331 323 iCircle2D foo 1 0 0 100;
#X obj 19 150 metro 1;
#X obj 378 449 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144
-1 -1 0 1;
#X obj 378 585 / 127;
#X msg 378 606 reset \, setY \$1;
#X obj 153 455 mass2D mass 1 0.1 0.9;
#X text 140 51 1 earth and 2 suns .;
#X text 140 67 The earth is attacted by the 2 suns. you can change
the initial position of the earth \, to test the ensitivity of initial
position of surch chaotic system.;
#X text 287 634 change initial position of the mass;
#X msg 331 296 setG -1e-06;
#X msg 153 296 setG -1e-06;
#X obj 10 2 declare -lib Gem;
#X connect 0 0 2 0;
#X connect 0 1 18 0;
#X connect 0 1 23 0;
#X connect 1 0 24 0;
#X connect 3 0 4 0;
#X connect 5 0 4 0;
#X connect 6 0 7 0;
#X connect 7 0 9 0;
#X connect 8 1 7 1;
#X connect 8 2 7 2;
#X connect 10 0 19 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 28 0;
#X connect 17 0 33 0;
#X connect 17 0 32 0;
#X connect 18 0 28 0;
#X connect 19 0 12 0;
#X connect 20 0 22 0;
#X connect 22 0 21 0;
#X connect 23 0 28 0;
#X connect 24 0 0 0;
#X connect 25 0 26 0;
#X connect 26 0 27 0;
#X connect 27 0 28 0;
#X connect 28 0 8 0;
#X connect 28 0 14 0;
#X connect 32 0 23 0;
#X connect 33 0 18 0;