Forums > Jitter

jit.anim.node – off-center rotation

March 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?

– Pasted Max Patch, click to expand. –

March 11, 2013 | 3:57 am

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


March 11, 2013 | 1:50 pm

That’s it – thanks Rob!


Viewing 3 posts - 1 through 3 (of 3 total)