Hi,
I am having trouble doing a thing that I thought was probably quite easy so I hope somebody can help me:
I want to place a plane text on the screen, transate it and rotate it. Translation works fine, rotation does not work. Here a little code fragment:
Text text = Text.createDefaultTextLabel("text", "a simple Text");
//Translate
text.setLocalTranslation(new Vector3f(1,60,0));
//Rotate
Quaternion q = new Quaternion();
q = q.fromAngleAxis(FastMath.DEG_TO_RAD*90, new Vector3f(1,0,0));
text.setLocalRotation(q);
scene.attachChild(text);
So my question:
- Is it possible to rotate a text like this?
- If not, what is the easiest way to put simple rotated texts on the screen?
Thanks for your help