It does take that into account! If you use setParent on both with the pivot, they end in this position:
While if you don’t, they’re like this:
I changed the scene a bit in an attempt to make things a little bit clearer. I’m drawing the pivots as yellow balls, I’m also not rotating the axis along with the node (so that we have a fixed reference point) and I set the 45 rotation on the parent without switching to the otherNode at first:
And then, after switching to the other node:
Here’s the playground: Pivot and parent | Babylon.js Playground (babylonjs.com)



