@Override
    public BoundingVolume transform(Matrix4f trans, BoundingVolume store) {
        BoundingSphere sphere;
        if (store == null || store.getType() != BoundingVolume.Type.Sphere) {
            sphere = new BoundingSphere(1, new Vector3f(0, 0, 0));
        } else {
            sphere = (BoundingSphere) store;
        }

        trans.mult(center, sphere.center);
        Vector3f axes = new Vector3f(1, 1, 1);
        trans.mult(axes, axes);
        float ax = getMaxAxis(axes);
        sphere.radius = FastMath.abs(ax * radius) + RADIUS_EPSILON - 1f;
        return sphere;
    }
<code>transform</code> modifies the center of the sphere to reflect the
change made via a rotation, translation and scale.

@param trans
           the transform to apply
@param store
           sphere to store result in
@return either store or a new BoundingSphere
jme3-core/src/main/java/com/jme3/bounding/BoundingSphere.java