Rotate a jit.anim.path ???


    Nov 21 2016 | 7:10 pm
    Would be great to send rotatexyz to this path but doesn't work :( ...
    Is there an easy way to rotate a jit.anim.path? Am I barking up the wrong tree?

    • Nov 21 2016 | 7:38 pm
      add the geometry you want to rotate to a jit.gl.node (simply placing a jit.gl.node in your sub-patch will do the trick), and rotate the jit.gl.node
    • Nov 21 2016 | 11:47 pm
      Thanks Rob,
      That allows me to transform the cube visually yes - but the other piece to the puzzle which I did not mention was that I would be using jit.proxy to find the position of the cube. You will see that by using "getposition" the transformation of the cube is still unchanged. Ultimately the goal is to find the difference in position between the cube and the spheres in the scene for 3D sound spatialization.
      Maybe I just need to calculate the cartesian coordinates and send them to the jit.anim.path - was just hoping for a simpler GL rotation.
    • Nov 22 2016 | 8:52 pm
      so i think the trick then is to attach a jit.anim.node to the gl object you want to query with the jit.proxy, and query the jit.anim.node instead. use "getworldpos" to get the world-space position of the object which should include the transformations of it's parent jit.gl.node sub-context.
    • Nov 23 2016 | 6:41 am
      dang Rob you done did it again - that was the answer
      That's a very nice way of doing things :)