How to give a node(Spatial) a position?

hello guys,


rootNode.attachChild(r);



How can i specify the location of in this instance r?

Regards

R

r.setLocalTranslation(new Vector3f(x,y,z));


I recommend going through the tutorials to learn about jme and the sceneraph.