I get a strange problem when using BondingVolume.
When adding a bonding volume with this code:
ThredSaftyManeger.beginEditing();
Box ne =new Box("newBox",new Vector3f(0,0,0),1,1,1);
ne.setWorldBound(new BoundingSphere());
ne.updateWorldBound();
((Node)top).attachChild(ne);
I get this exception:
java.lang.NullPointerException
at com.jme.bounding.BoundingSphere.merge(BoundingSphere.java:354)
at com.jme.bounding.BoundingSphere.mergeLocal(BoundingSphere.java:340)
at com.jme.scene.Node.updateWorldBound(Node.java:279)
at com.jme.scene.Spatial.updateGeometricState(Spatial.java:384)
at com.jme.scene.Node.updateWorldData(Node.java:218)
at com.jme.scene.Spatial.updateGeometricState(Spatial.java:383)
at com.jme.scene.Node.updateWorldData(Node.java:218)
at com.jme.scene.Spatial.updateGeometricState(Spatial.java:383)
at com.jme.scene.Node.updateWorldData(Node.java:218)
at com.jme.scene.Spatial.updateGeometricState(Spatial.java:383)
at jmetest.editer.EditerMain.update(EditerMain.java:133)
at com.jme.app.VariableTimestepGame.start(VariableTimestepGame.java:95)
at jmetest.editer.EditerMain$1.run(EditerMain.java:108)
Hear:
main.updateGeometricState(interpolation, true);
when called in update.