Box attached to staticNode --> Scale error

Hi,



I obtain NO error if I attach ONE simple Box to the spn.

But there is a error if I attach TWO OR MORE simple Boxes to the spn.





Attaching Box to the static node (works only with one box):


final Box w_1 = new Box("1",new Vector3f(769.5f,-100,-769.5f),2,100,1539);
w_1.setModelBound(new BoundingBox());
w_1.updateModelBound();
            
itemPhysicsNode.attachChild(w_1);
itemPhysicsNode.generatePhysicsGeometry(true);



The instance "itemPhysicsNode" is the second static node besides my "staticPhysicsNode". Is that the problem?


The error:


Exception in thread "Thread-7" java.lang.IllegalArgumentException: scale must not have 0 as a component (geom '2')!
   at com.jmex.physics.impl.ode.geometry.OdeBox.updateWorldVectors(OdeBox.java:69)
   at com.jme.scene.Spatial.updateWorldData(Spatial.java:386)
   at com.jme.scene.Spatial.updateGeometricState(Spatial.java:351)
   at com.jme.scene.Node.updateWorldData(Node.java:395)
   at com.jme.scene.Spatial.updateGeometricState(Spatial.java:351)
   at com.jme.scene.Node.updateWorldData(Node.java:395)
   at com.jme.scene.Spatial.updateGeometricState(Spatial.java:351)
   at mce.game.states.PlayState.<init>(PlayState.java:86)



(Just to mention: I do triangle accuracy as I also attached items to the terrain like gate which should no behave like a box..)

solved by attaching the boxes to the first static node:



staticPhysicsNode.attachChild(w_1);
staticPhysicsNode.attachChild(w_2);
...



;)