* Set the spinners to the rotation, translation and scale local coords of
* this node
* @param node
*/
private void setSpinners(Node modelBG, Node rootBG) {
Vector3f translation = rootBG.getLocalTranslation();
Quaternion quat = modelBG.getLocalRotation();
float[] angles = quat.toAngles(new float[3]);
Vector3f scale = modelBG.getLocalScale();
translationXTF.setValue(translation.x);
translationYTF.setValue(translation.y);
translationZTF.setValue(translation.z);
rotationXTF.setValue((float) Math.toDegrees(angles[0]));
rotationYTF.setValue((float) Math.toDegrees(angles[1]));
rotationZTF.setValue((float) Math.toDegrees(angles[2]));
scaleTF.setValue(scale.x);
importedModel.setTranslation(translation);
importedModel.setOrientation(new Vector3f(
(float) Math.toDegrees(angles[0]),
(float) Math.toDegrees(angles[1]),
(float) Math.toDegrees(angles[2])));
importedModel.setScale(new Vector3f(scale.x, scale.x, scale.x));
}