protected void prevTemplate(){ template_index--; if(template_index<0)template_index=0; System.out.println("prev template:"+templates[template_index]);}
protected void addModel(){
Node n = Assembler2.getModel4(templates[template_index],true, true);
if(n != null){
n.setModelBound(new BoundingBox());
n.updateGeometricState();
n.updateModelBound();
nodes.add(n);
currentNode++;
int x = currentNode;
int y = 2+((currentNode%2)*-1);//*currentNode;
// n.setLocalTranslation(x, 0.0f, y);
n.setLocalTranslation(x, 0.0f, y);
rootNode.attachChild(n);
}
}