$fn = 24; part = "walk"; module bar(a,b,d=3.2) { color("#d8c8a8") hull() { translate(a) sphere(d=d); translate(b) sphere(d=d); } } module walker() { // crank shaft color("#8a7a68") rotate([0,90,0]) cylinder(d=6, h=80, center=true); color("#8a7a68") for (s=[-1,1]) translate([s*40,0,0]) rotate([0,90,0]) cylinder(d=12, h=4, center=true); // eight legs, alternating phase for (i=[0:7]) { side = (i<4)?-1:1; k = i%4; x = side * (12 + k*10); ph = k*90 + (side<0?0:45); crank = [x, 16*cos(ph), 16*sin(ph)]; hip = [x, 0, -8]; mid = [x, 40+8*cos(ph+30), -50]; foot= [x, 55+18*cos(ph), -80+4*sin(ph*2)]; color("#c4a070") translate(crank) sphere(d=5); bar(crank, [x, 20, -20], 2.8); bar([x,20,-20], mid, 2.8); bar(mid, foot, 2.8); bar(hip, mid, 2.8); color("#8a7a68") translate(foot) scale([1.4,0.8,0.35]) sphere(d=10); } // handle color("#8a7a68") translate([44,0,0]) rotate([30,0,0]) cylinder(d=4, h=28); } walker();