Trying to get rotation about a line, but following the doc example I'm not getting it

I did the following to try to make an object rotate about a line:

Clearly it’s not rotating. I did this while trying to emulated what I found in the docs:

Clearly I’m missing something. Now I know I didn’t use .registerAfterRender because I’m trying to actually use this rotation inside the logic of a button press. So I want to be able to start and stop the rotation, and therefore control this within the logic of the rendering loop.

But otherwise I’m struggling to see the difference in the two uses of rotation.

Hi @addem
Like in the sample PG, you can rotate the pivot

1 Like

Ah yeah, I might have just been staring at the code for too long and needed a break!

Thank you!

1 Like