Rotating with jit.phys.mulitple

    Apr 01 2013 | 10:01 pm
    Hi, I have a patch in which a is being spread into ring of objects using Using jit.phys.multiple I am creating physics bodies for each object in the multiple spread so that we can register the collision of these objects with another. I can send a rotatexyz attribute to the to rotate the entire group together. However, the jit.phys.multiple bodies do not rotate along with this and are left hanging. jit.phys.multiple does not have a rotatexyz attribute and I'm not sure how to get this information to it.
    Attached is an example of this situation, snagged form the help patch. Thanks!! Andrew

    • Apr 02 2013 | 5:21 pm
      you can do this with the jit.gen qrot operator, which rotates a vector (the individual body positions) by a quaternion (your rotation value). jit.euler2quat will convert your euler xyz values to a quaternion.
    • Apr 02 2013 | 10:38 pm
      Awesome! Thanks Rob. ae