#N canvas 544 163 695 674 10; #X text 302 319 if the position of the masse is < Xmin then position will be Xmin; #X msg 123 448 resetF; #X msg 124 417 reset; #X msg 124 356 bang; #X msg 122 483 loadbang; #X msg 120 173 setM 1; #X text 284 130 this is the name of the mass. you can set value to this name instead of making a pd connection.; #X msg 120 283 setXmin -10000 \, setXmax 10000; #X msg 121 209 setX 0; #X obj 36 520 mass; #X floatatom 36 589 5 0 0 0 - - -; #X floatatom 45 572 5 0 0 0 - - -; #X floatatom 55 554 5 0 0 0 - - -; #X text 260 308 Xmin; #X text 260 324 Xmax; #X obj 124 386 0; #X text 317 6 mass; #X text 259 169 2 : M = weight of the mass; #X text 97 553 X velocity of the mass; #X text 260 117 1 : Name; #X text 280 182 changes weight of the mass; #X text 259 208 3 : Mass position; #X text 281 221 changes position of the mass \, and resets memory (for history).; #X text 302 307 sets the minimum and maximum position of the mass; #X text 260 387 adds force to this mass; #X text 259 413 resets position (to its initial value) and forces to zero. send its position to its outlet.; #X text 258 452 resets the total forces applied to the mass; #X text 257 486 outputs current position; #X text 95 590 X position of the mass; #X text 96 572 X force applied to the mass; #X text 259 357 computes position and outputs it; #X text 152 23 mass : gets link forces and outputs position.; #X text 152 37 The sum of the forces applied to a mass modifies its velocity (depending on its weight). The position is changed according to the velocity and the weight of the mass.; #X text 153 77 M is positive. Negative values produce non physical behaviours.; #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 7 0 9 0; #X connect 8 0 9 0; #X connect 9 0 10 0; #X connect 9 1 11 0; #X connect 9 2 12 0; #X connect 15 0 9 0;