How do you rotate objects globally

    Jul 08 2013 | 9:18 pm
    I have a patch in which a loads around 500 gridshape objects each with random rotations. Once the objects are loaded up I want to rotate them all globally around their individual origins. So sending [angle,1,0,0] would rotate them around the global x axis.
    Ive tried sending rotate messages to the gridshape but this rotates the whole spread of objects around 0,0,0.
    Also had a look at but I couldn't make it work that way.
    I think I need to do some magical maths using the object's initial random rotations and the global rotations I want to apply, I've searched the forum and the web but can't get a grasp on the maths I need to use, so hope someone can help.
    Attached is a simplified patch which illustrates my problem

    • Jul 09 2013 | 3:39 pm
      does simply rotating the (either with its @rotate or @rotatexyz attributes) not give what you want?
    • Jul 09 2013 | 6:30 pm
      Hi Rob,
      No unfortunately sending rotate to the rotates all the objects around the multiple's centerpoint/origin.
      Your post made me re-examine what I was after and I think what's below is working, although the objects aren't rotating around the specified X/Y/Z axes they do seem to be rotating globally rather than locally...
      Thanks for knocking my brain into gear!