Temporarily link a node to another node

I was wondering if anyone had any ideas on an easy way to do the following. I have a node, NodeA in the world that I can drag around and rotate about its own origin, but I would like to temporarily link it to another Node, NodeB, so when NodeB rotates and translates NodeA moves/ rotates about NodeB’s origin. The use case for this is I am controlling a robots arm. I can place the virtual hand anywhere in the JME world, move it, rotate it, and tell the robot arm to put the real hand at that location. Now I would like to put a steering wheel in the virtual world, move the hands into place on the steering wheel and then when the steering wheel moves/ rotates, the hands do as well.

Just attach NodeA to NodeB?
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:scenegraph_for_dummies

@normen said: Just attach NodeA to NodeB? https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:scenegraph_for_dummies

if NodeA is at 1,0,0 and NodeB is at 10,0,0 and then i “attach” NodeA to NodeB, NodeA will then be at 11,0,0.

I want to be able to have a single object rotate about multiple objects. i want to put a NodeA in the world, place it where i want, then say, ok now rotate about NodeB, and then rotate around NodeC. NodeB and NodeC will be created and displayed after NodeA, and then NodeB or NodeC are detached i do not want NodeA effected.

I guess one approach that would work for me is if i can tell a node to rotate about any arbitrary point in the world. at that point i can have NodeA, temporarily listen to any select node for changes in rotation/ translation and update accordingly. i am guessing that is no rotate method in jme that takes in a origin point?

@jcarff said: I guess one approach that would work for me is if i can tell a node to rotate about any arbitrary point in the world. at that point i can have NodeA, temporarily listen to any select node for changes in rotation/ translation and update accordingly. i am guessing that is no rotate method in jme that takes in a origin point?

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:math_for_dummies