$fn=50; // resolution set to 50



module sphere_cloud(dtc = 1 /*distance to center*/, radius = 1) {
    centers = [[0,0,dtc],
               [0,0,-dtc],
               [0,dtc,0],
               [0,-dtc,0],
               [dtc,0,0],
               [-dtc,0,0]];

    for (i = [0 : 5]) {
        translate(centers[i]){
            sphere(radius);
        }
    }
}

rotate([0,45,45]) {
    sphere_cloud(5,1);
}