[SOLVED] How to get boundaries of all geometry attached to rootNode

Hello everybody,
I found out that i can get the center of all geometry with

rootNode.getWorldBound().getCenter();

Now i need to know if there’s an easy way to get the minimum an maximum xyz-coordinates for the bounding box that surrounds all geometry attached to the rootNode. i mean something like

rootNode.getWorldBound().getMinX();
rootNode.getWorldBound().getMaxX(); 

and so on.

getWorldBound() returns a BoundingVolume you can cast it directly to BoundingBox and get min/max.

((BoundingBox)rootNode.getWorldBound()).getMin();
((BoundingBox)rootNode.getWorldBound()).getMax();
1 Like

That’s it. Thank you very much !!!

1 Like