How to use Boundings?

Well i currently want to get the size of a bounding box, however I fail somehow and don#t know where



   Node col = LoaderThread.LoadRaw("truck_phys");
   BoundingBox bound = new BoundingBox();
   col.setModelBound(bound);
   col.updateModelBound();
   System.out.println(col.getTriangleCount() + " Size: " + bound.getExtent(null));



When executed I get:
12 Size: (0.0, 0.0, 0.0)
So the model is existent (its only a box currently) but for some reason the bounding is not updated. Note, col is outside of any Scengraph it just exists to get the bounding box. Also ignore theLoaderthread, load raw loads directly without using another thread

I am not sure but maybe you have to supply an empty vector? Not sure if one is created when you use null.

according to the javadoc of that function it is. I think this is true , since else I should probably get a NPException

Empire Phoenix said:

according to the javadoc of that function it is. I think this is true , since else I should probably get a NPException

Ok but maybe you just try it still, maybe something else happens :)

ok, semms lik e that method is to manually change the bound, I can get the worldbound however and cast that one to a box