jit.anim.node - off-center rotation

    Mar 10 2013 | 3:32 pm
    I'm sure I'm missing something really basic here, but I can't figure it out.
    I have a jit.gl.sketch with a red cube at the origin, and a blue cube offset from it. By using a jit.anim.node, I can easily make the blue cube rotate around the red cube. But how would I make the red cube rotate around the blue cube? In other words, how would I set up a rotation around a pivot point that isn't at the center of an object?

    • Mar 11 2013 | 3:57 am
      check out the @anchor attribute of jit.anim.node. @anchor -4 0 0 in this case.
    • Mar 11 2013 | 1:50 pm
      That's it - thanks Rob!