jit.anim.node - off-center rotation

pseudostereo's icon

I'm sure I'm missing something really basic here, but I can't figure it out.

Max Patch
Copy patch and select New From Clipboard in Max.

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?

Rob Ramirez's icon

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

pseudostereo's icon

That's it - thanks Rob!