aboutsummaryrefslogtreecommitdiff
path: root/mass2D-help.pd
blob: 2f094af60555af09348b19c775199711ee2eb112 (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
75
#N canvas 596 85 712 771 10;
#X msg 115 519 resetF;
#X msg 116 496 reset;
#X msg 116 450 bang;
#X msg 115 541 off;
#X msg 116 564 on;
#X msg 115 588 loadbang;
#X msg 120 153 setM 1;
#X msg 119 344 setT 0;
#X text 284 122 this is the name of the mass. you can set value to
this name instead of making a pd connection.;
#X obj 29 625 mass2D;
#X msg 118 260 setXmin -10000 \, setXmax 10000 \, setYmin -10000 \,
setYmax 10000;
#X text 260 277 5 : Xmin;
#X text 260 293 6 : Xmax;
#X text 260 309 7 : Ymin;
#X text 260 325 8 : Ymax;
#X text 259 343 9 : Threshold;
#X msg 121 182 setX 0 \, setY 0;
#X msg 121 206 setXY 0 0 0;
#X msg 114 427 setD 0;
#X obj 62 657 unpack s f f f;
#X obj 45 683 unpack s f f f;
#X obj 29 707 unpack s f f;
#X msg 116 472 force2D $f1 $f2;
#X text 259 191 3 : X = initial position of the mass;
#X text 259 212 4 : Y = initial position of the mass;
#X text 317 6 mass;
#X text 169 660 X Y & total velocity of the mass;
#X text 140 708 X Y position of the mass;
#X text 259 159 2 : M = weight of the mass;
#X text 261 107 1 : Name;
#X text 282 172 changes weight of the mass;
#X text 281 225 changes position of the mass \, and resets memory (for
history).;
#X text 340 289 sets the minimum and maximum position of the mass;
#X text 342 305 if the position of the mass is < Xmin the position
will be Xmin;
#X text 282 356 changes the threshold value;
#X text 282 371 when the masses are at Xmin \, Xmax \, Ymon \, Ymax
\, Zmin or Zmax \, the movement is possible only if the force applied
is higher than the threshold;
#X text 257 423 10 : sets velocity damping of the mass;
#X text 257 449 computes position and outputs it;
#X text 257 476 adds force to this mass;
#X text 255 494 resets position (to its initial value) and forces to
zero. send its position to its outlet.;
#X text 255 525 resets the total forces applied to the mass;
#X text 255 546 stops mass movement;
#X text 255 569 restarts mass movement;
#X text 255 592 outputs current position;
#X text 154 684 X Y & total force applied to the mass;
#X text 156 23 mass2D : gets link forces and outputs position.;
#X text 154 78 M is positive. Negative value produce non physical behaviours.
;
#X text 154 37 The sum of the forces applied to a mass modifies its
velocity (depending of its weight). The position is changed according
to the velocity and the weight of the mass.;
#X connect 0 0 9 0;
#X connect 1 0 9 0;
#X connect 2 0 9 0;
#X connect 3 0 9 0;
#X connect 4 0 9 0;
#X connect 5 0 9 0;
#X connect 6 0 9 0;
#X connect 7 0 9 0;
#X connect 9 0 21 0;
#X connect 9 1 20 0;
#X connect 9 2 19 0;
#X connect 10 0 9 0;
#X connect 16 0 9 0;
#X connect 17 0 9 0;
#X connect 18 0 9 0;
#X connect 22 0 9 0;