@Override
    protected void updateWorldBound() {
        refreshFlags &= ~RF_BOUND;
        BoundingVolume resultBound = null;

        for (int i = 0; i < firstUnusedIndex; i++) {
            Geometry geom = geometries[i];

            if (geom != null) {
                if (resultBound != null) {
                    // merge current world bound with child world bound
                    resultBound.mergeLocal(geom.getWorldBound());
                } else {
                    // set world bound to first non-null child world bound
                    if (geom.getWorldBound() != null) {
                        resultBound = geom.getWorldBound().clone(this.worldBound);
                    }
                }
            }
        }

        if (resultBound == null) {
            resultBound = new BoundingBox(getWorldTranslation(), 0f, 0f, 0f);
        }
        this.worldBound = resultBound;
    }
@deprecated use {@link #updateInstances(com.jme3.renderer.Camera)}
jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java