jit.anim.node – off-center rotation

Mar 10, 2013 at 3:32pm

jit.anim.node – off-center rotation

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?

– Pasted Max Patch, click to expand. –
Mar 11, 2013 at 3:57am

check out the @anchor attribute of jit.anim.node.
@anchor -4 0 0 in this case.

Mar 11, 2013 at 1:50pm

That’s it – thanks Rob!


You must be logged in to reply to this topic.