I have a patch in which a jit.gl.multiple 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 jit.gl.node 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