BoundingVolume of SceneNode

Hello,



if I have got a sceneNode and there are three geometries added to it, is there a possibility to caluclate the boundingBox for the scenenNode, i.e. wrapping the three geometries?



Thanks.



Regards,

Equi

Yes

look at how it’s done for shadows here

http://code.google.com/p/jmonkeyengine/source/browse/branches/jme3/src/desktop-fx/com/jme3/shadow/ShadowUtil.java

look at the computeUnionBound methods, that’s the way to go

sceneNode.getWorldBound()