But I’m not getting the joint’s world position but rather it’s parent’s position…
I found a workaround to place my other node in the joint’s position - I attach it to the joint’s node then detach it (attach it to the root node) but I don’t like this approach.
So, how can I position my other node in the world position of the joint?
The parent of the attachment node (myJointNode) will be the Spatial to which skinningControl is added. So the local translation of myJointNode will be in the coordinate system of that Spatial.
When myOtherNode is attached to rootNode, its local translation will be in world coordinates. So I think you need to convert from the coordinate system of the controlled spatial to world coordinates. Probably the safest solution would be to use myJointNode.getWorldTransform() and apply that Transform to myOtherNode using myOtherNode.setLocalTransform()
PS: By applying the Transform, you are copying the translation, rotation, and scale (if any), not just the translation.