<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">Le 06/01/2015 21:30, IOhannes m zmölnig
      a écrit :<br>
    </div>
    <blockquote cite="mid:54AC45DE.90808@iem.at" type="cite">
      <pre wrap="">On 01/06/2015 09:12 PM, patrice colet wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello,

 is there a simple way in Gem to rotate an object locally,
or in other words is it possible to rotate an object on z axis, and then
rotate on the new x axis given by z axis rotation?

I believe it would be possible to do that with some matrix magicks but
it looks complicated to me, maybe there are examples somewhere?
</pre>
      </blockquote>
      <pre wrap="">
i'm sure i misunderstand the question, as the answer i find is rather
simple (all transformations in Gem are always on the local coordinate
system)
</pre>
    </blockquote>
    <br>
    It's not easy to explain indeed, let's take a square object for
    example,<br>
    when no transformation has been given to the square,<br>
     [rotate 45 1 0 0] will rotate the square around the line at the
    center of the square height.<br>
    <br>
     By adding [rotate 45 0 0 1], [rotate 45 1 0 0] won't rotate anymore
    on square's x axis,<br>
    but on some axis given by the original object's coordinates,<br>
    in our example the new square's x rotating axis<br>
    is the line defined by opposite corners of the square.<br>
    <br>
    I'd like to find a way to always rotate the object on it's own axis,<br>
     and not the axis defined by the object's original orientation, <br>
    'local transform' are not really the good words for that,<br>
    but didn't found another ones<br>
    <br>
    <br>
    <blockquote cite="mid:54AC45DE.90808@iem.at" type="cite">
      <pre wrap="">
|
[rotate 12 0 0 1]
|
[rotate 42 1 0 0 ]
|

or even:
|
[rotateXYZ 0 0 12]
|
[rotateXYZ 42 0 0]
|
</pre>
    </blockquote>
    <br>
    cumulating rotate object gives same result as using a single rotate
    object,<br>
    <br>
    thanks for the help<br>
    <br>
    <blockquote cite="mid:54AC45DE.90808@iem.at" type="cite">
      <pre wrap="">
fgmsadr
IOhannes

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>