Revision 61820aa5 examples/04.ObjectMotion.pd

b/examples/04.ObjectMotion.pd
1
#N canvas 2299 -391 884 925 10;
1
#N canvas 1567 -518 893 902 10;
2 2
#X obj 18 76 cnv 15 24 24 empty empty 1 4 12 1 24 -99865 -262144 0
3 3
;
4 4
#X obj 18 310 cnv 15 24 24 empty empty 3 4 12 1 24 -99865 -262144 0
......
47 47
#X msg 416 820 /cube setComputationMode \$1;
48 48
#X text 435 783 SERVER_SIDE;
49 49
#X text 435 799 CLIENT_SIDE;
50
#X text 220 582 Angular velocity (in deg/sec). In this case \, the
51
model will yaw 90 degrees every second;
52 50
#X msg 106 463 /cube addRotation 0 0 -10;
53 51
#X text 227 426 <- applies a local rotation;
54
#X obj 528 660 expr random(-5 \, 5) \; random(10 \, 50) \; random(-5
52
#X obj 528 680 expr random(-5 \, 5) \; random(10 \, 50) \; random(-5
55 53
\, 5);
56
#X obj 593 711 pack 0 0 0 s;
57
#X obj 635 635 t b s;
58
#X obj 635 615 symbol;
59
#X msg 593 731 /cube translateTo \$1 \$2 \$3 3 \$4;
60
#X msg 701 71 OutQuadMotion;
61
#X msg 701 91 InQuadMotion;
62
#X msg 701 111 InOutQuadMotion;
63
#X msg 701 131 OutCubicMotion;
64
#X msg 701 151 InCubicMotion;
65
#X msg 701 171 InOutCubicMotion;
66
#X msg 701 191 OutQuartMotion;
67
#X msg 701 211 InQuartMotion;
68
#X msg 701 231 InOutQuartMotion;
69
#X msg 701 251 OutBounceMotion;
70
#X msg 701 271 InBounceMotion;
71
#X msg 701 291 InOutBounceMotion;
72
#X msg 701 311 OutElasticMotion;
73
#X msg 701 331 InElasticMotion;
74
#X msg 701 351 InOutElasticMotion;
75
#X msg 701 371 OutSineMotion;
76
#X msg 701 391 InSineMotion;
77
#X msg 701 411 InOutSineMotion;
78
#X msg 701 431 OutBackMotion;
79
#X msg 701 451 InBackMotion;
80
#X msg 701 471 InOutBackMotion;
81
#X msg 701 491 OutCircMotion;
82
#X msg 701 511 InCircMotion;
83
#X msg 701 531 InOutCircMotion;
84
#X msg 701 551 OutExpoMotion;
85
#X msg 701 571 InExpoMotion;
86
#X msg 701 591 InOutExpoMotion;
54
#X obj 593 731 pack 0 0 0 s;
55
#X obj 635 655 t b s;
56
#X obj 635 635 symbol;
57
#X msg 593 751 /cube translateTo \$1 \$2 \$3 3 \$4;
58
#X msg 701 91 OutQuadMotion;
59
#X msg 701 111 InQuadMotion;
60
#X msg 701 131 InOutQuadMotion;
61
#X msg 701 151 OutCubicMotion;
62
#X msg 701 171 InCubicMotion;
63
#X msg 701 191 InOutCubicMotion;
64
#X msg 701 211 OutQuartMotion;
65
#X msg 701 231 InQuartMotion;
66
#X msg 701 251 InOutQuartMotion;
67
#X msg 701 271 OutBounceMotion;
68
#X msg 701 291 InBounceMotion;
69
#X msg 701 311 InOutBounceMotion;
70
#X msg 701 331 OutElasticMotion;
71
#X msg 701 351 InElasticMotion;
72
#X msg 701 371 InOutElasticMotion;
73
#X msg 701 391 OutSineMotion;
74
#X msg 701 411 InSineMotion;
75
#X msg 701 431 InOutSineMotion;
76
#X msg 701 451 OutBackMotion;
77
#X msg 701 471 InBackMotion;
78
#X msg 701 491 InOutBackMotion;
79
#X msg 701 511 OutCircMotion;
80
#X msg 701 531 InCircMotion;
81
#X msg 701 551 InOutCircMotion;
82
#X msg 701 571 OutExpoMotion;
83
#X msg 701 591 InExpoMotion;
84
#X msg 701 611 InOutExpoMotion;
87 85
#X text 145 443 vs.;
88 86
#X text 272 464 <- adds a relative rotation to current orientation
89 87
;
90 88
#X text 581 44 Try different types of predefined motions:;
91 89
#X obj 416 840 s \$0-to-SPIN;
92
#X obj 593 752 s \$0-to-SPIN;
90
#X obj 593 772 s \$0-to-SPIN;
93 91
#X text 47 725 Understanding CLIENT_SIDE motion:;
94 92
#X text 17 750 By default \, SPIN computes velocities and motions on
95 93
the server-side and multicasts each update. This puts a lot of strain
......
101 99
widget above \, and see how the message stream changes when you enable
102 100
client-side computation and apply velocities or predefined motions.
103 101
;
102
#X msg 701 71 LinearMotion;
103
#X text 220 582 Angular velocity (in deg/sec). In this case \, the
104
model will yaw 90 degrees every second;
105
#X text 755 769 ^ duration of (3sec);
104 106
#X connect 6 0 28 0;
105 107
#X connect 8 0 7 0;
106 108
#X connect 9 0 8 0;
......
113 115
#X connect 20 0 3 0;
114 116
#X connect 29 0 3 0;
115 117
#X connect 30 0 31 0;
116
#X connect 31 0 72 0;
117
#X connect 35 0 3 0;
118
#X connect 37 0 38 0;
119
#X connect 37 1 38 1;
120
#X connect 37 2 38 2;
121
#X connect 38 0 41 0;
122
#X connect 39 0 37 0;
123
#X connect 39 1 38 3;
124
#X connect 40 0 39 0;
125
#X connect 41 0 73 0;
126
#X connect 42 0 40 0;
127
#X connect 43 0 40 0;
128
#X connect 44 0 40 0;
129
#X connect 45 0 40 0;
130
#X connect 46 0 40 0;
131
#X connect 47 0 40 0;
132
#X connect 48 0 40 0;
133
#X connect 49 0 40 0;
134
#X connect 50 0 40 0;
135
#X connect 51 0 40 0;
136
#X connect 52 0 40 0;
137
#X connect 53 0 40 0;
138
#X connect 54 0 40 0;
139
#X connect 55 0 40 0;
140
#X connect 56 0 40 0;
141
#X connect 57 0 40 0;
142
#X connect 58 0 40 0;
143
#X connect 59 0 40 0;
144
#X connect 60 0 40 0;
145
#X connect 61 0 40 0;
146
#X connect 62 0 40 0;
147
#X connect 63 0 40 0;
148
#X connect 64 0 40 0;
149
#X connect 65 0 40 0;
150
#X connect 66 0 40 0;
151
#X connect 67 0 40 0;
152
#X connect 68 0 40 0;
118
#X connect 31 0 71 0;
119
#X connect 34 0 3 0;
120
#X connect 36 0 37 0;
121
#X connect 36 1 37 1;
122
#X connect 36 2 37 2;
123
#X connect 37 0 40 0;
124
#X connect 38 0 36 0;
125
#X connect 38 1 37 3;
126
#X connect 39 0 38 0;
127
#X connect 40 0 72 0;
128
#X connect 41 0 39 0;
129
#X connect 42 0 39 0;
130
#X connect 43 0 39 0;
131
#X connect 44 0 39 0;
132
#X connect 45 0 39 0;
133
#X connect 46 0 39 0;
134
#X connect 47 0 39 0;
135
#X connect 48 0 39 0;
136
#X connect 49 0 39 0;
137
#X connect 50 0 39 0;
138
#X connect 51 0 39 0;
139
#X connect 52 0 39 0;
140
#X connect 53 0 39 0;
141
#X connect 54 0 39 0;
142
#X connect 55 0 39 0;
143
#X connect 56 0 39 0;
144
#X connect 57 0 39 0;
145
#X connect 58 0 39 0;
146
#X connect 59 0 39 0;
147
#X connect 60 0 39 0;
148
#X connect 61 0 39 0;
149
#X connect 62 0 39 0;
150
#X connect 63 0 39 0;
151
#X connect 64 0 39 0;
152
#X connect 65 0 39 0;
153
#X connect 66 0 39 0;
154
#X connect 67 0 39 0;
155
#X connect 76 0 39 0;

Also available in: Unified diff