---------- Forwarded message ---------- From: Richard Powell <[EMAIL PROTECTED]> Date: Jul 22, 2007 3:32 PM Subject: circular motion of a shape using TranslateXYZ To: [EMAIL PROTECTED]
Hi everyone, This is my first post to the list so please bear with me. I am trying to move a shape (sphere, square, cube doesn't matter to much) in a circle around a central point. The Easiest way to do this is to use Translate XYZ to move the shape for example 1 unit X,Y or Z and then use rotateXYZ to rotate it. Simple, except I would like to keep the shape always pointing up, so that the texture that will be applied to the shape will always be the correct way up. For this I have decided to use just TranslateXYZ. I have attached how far I have got with this so far. As you can see the shape moves as in a square motion rather than a circular motion. I am guessing I need to apply some maths to the numbers between the line object and the Translate XYZ object, but everything I've tried hasn't worked. Thanks in advance Richard
#N canvas 1279 1 763 870 12; #X obj 18 9 gemwin; #X msg 18 -50 create \, 1; #X floatatom 57 720 5 0 0 0 - - -; #X obj 18 564 translateXYZ; #X floatatom 58 518 5 0 0 0 - - -; #X floatatom 108 536 5 0 0 0 - - -; #X obj 129 394 line; #X obj 206 15 bng 15 250 50 0 empty empty empty 0 -6 0 10 -262144 -1 -1; #X obj 179 393 line; #X obj 229 392 line; #X msg 127 286 -1 \, 1 1000; #X msg 210 286 0 \, 1 500; #X obj 281 286 pipe 500; #X msg 281 336 1 \, 0 500; #X obj 18 757 square; #X obj 356 393 line; #X obj 413 199 bng 15 250 50 0 empty empty empty 0 -6 0 10 -262144 -1 -1; #X obj 406 392 line; #X obj 413 231 t b b b; #X obj 456 391 line; #X obj 512 285 pipe 500; #X obj 206 47 t b b b b; #X obj 413 166 pipe 1000; #X msg 354 285 1 \, -1 1000; #X msg 436 285 0 \, -1 500; #X msg 512 335 -1 \, 0 500; #X obj 206 -24 metro 2000; #X obj 206 -59 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 1 1; #X obj 559 595 t b f; #X msg 559 620 2; #X obj 559 689 pow; #X obj 620 717 scale 1; #X obj 378 647 vsl 15 128 -1 1 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 6 1; #X obj 631 459 vsl 16 100 0 2 0 0 empty empty empty 0 -8 0 10 -262144 -1 -1 0 1; #X floatatom 694 568 5 0 0 0 - - -; #X floatatom 443 599 5 0 0 0 - - -; #X obj 559 565 * 5; #X obj 441 654 / 1024; #X floatatom 453 739 5 0 0 0 - - -; #X floatatom 639 618 5 0 0 0 - - -; #X floatatom 494 689 5 0 0 0 - - -; #X obj 412 683 - 1; #X obj 18 38 gemhead; #X connect 1 0 0 0; #X connect 2 0 14 1; #X connect 3 0 14 0; #X connect 4 0 3 1; #X connect 5 0 3 2; #X connect 6 0 4 0; #X connect 7 0 21 0; #X connect 8 0 5 0; #X connect 9 0 5 0; #X connect 10 0 6 0; #X connect 11 0 8 0; #X connect 12 0 13 0; #X connect 13 0 9 0; #X connect 15 0 4 0; #X connect 16 0 18 0; #X connect 17 0 5 0; #X connect 18 0 20 0; #X connect 18 1 24 0; #X connect 18 2 23 0; #X connect 19 0 5 0; #X connect 20 0 25 0; #X connect 21 0 22 0; #X connect 21 1 12 0; #X connect 21 2 11 0; #X connect 21 3 10 0; #X connect 22 0 16 0; #X connect 23 0 15 0; #X connect 24 0 17 0; #X connect 25 0 19 0; #X connect 26 0 7 0; #X connect 27 0 26 0; #X connect 28 0 29 0; #X connect 28 1 30 1; #X connect 29 0 30 0; #X connect 30 0 35 0; #X connect 33 0 34 0; #X connect 33 0 36 0; #X connect 35 0 37 0; #X connect 36 0 28 0; #X connect 36 0 39 0; #X connect 37 0 40 0; #X connect 37 0 41 0; #X connect 41 0 32 0; #X connect 42 0 3 0;
_______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list