Coordinate axes in guiNode

Hi.

I want to put coordinate axes to the guiNode. I have tried with this: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:debugging , with changing the rootNode.attachChild(g); to guiNode.attachChild(g).



The problem is, I want it to rotate as I rotate the world with the mouse and keys. so it would function as an indicator of which coordinate looks which direction. How can this be done? If I leave it to be attached to the rootNode, its fine but I want it to stay in the right bottom of the screen as it would be on th gui.

You could attach it to the root node and set translation to move it with the camera…



…or attach it to the gui node and set rotation = to that of the camera.



Either way would work, it depends really on whether you want it to intersect/get lit with/etc the world really.