Hello,
I have a dummy doubt. When I tryed to instantiate a quad (which I’ve understood as a plane shape) I’ve faced some problems with my texture (it was being cutted). At first I fought that I was making something terrible wrong and lost a big time serching for answers, but than I tryed to use a Box and it worked.
Looks like the two shapes have diferent units or something? An I doing something wrong, I mean, is this expected?
There is a PIC
And a part of the code
[java]Box b = new Box(Vector3f.ZERO, 1, 1, 1);
Geometry geom = new Geometry(“Box”, b);
Quad q = new Quad( 1 , 1 );
Geometry g = new Geometry(“Quad” , q);
Material mat = new Material(assetManager, “Common/MatDefs/Misc/Unshaded.j3md”);
mat.setColor(“Color”, ColorRGBA.Blue);
geom.setMaterial(mat);
g.setMaterial(mat);
g.setLocalTranslation(1, 0, 0);
rootNode.attachChild(geom);
rootNode.attachChild(g);[/java]