//animation-step: 360
time = $t*4*360;
planetRot = 20+time/2;
planetsRot = 0+time/4;
inRot = 0+time;
outRot = planetsRot;
color("red") rotate([0,0,outRot]) import_stl("single_parts/ring_top.stl", convexity = 5);
color("blue") translate([cos(0+planetsRot)*7.2,sin(0+planetsRot)*7.2,-5]) rotate([0,0,-planetRot]) import_stl("single_parts/planet.stl", convexity = 5);
color("blue") translate([cos(120+planetsRot)*7.2,sin(120+planetsRot)*7.2,-5]) rotate([0,0,-planetRot])import_stl("single_parts/planet.stl", convexity = 5);
color("blue") translate([cos(240+planetsRot)*7.2,sin(240+planetsRot)*7.2,-5]) rotate([0,0,-planetRot])import_stl("single_parts/planet.stl", convexity = 5);
color("red") rotate([0,0,outRot]) translate([0,0,-8]) import_stl("single_parts/ring_bottom.stl", convexity = 5);
color("DimGray") translate([0,0,-4]) import_stl("single_parts/annulus_plate.stl", convexity = 5);
color("green") translate([0,0,-25]) rotate([0,0,inRot]) import_stl("single_parts/input_bit_for_powertool.stl", convexity = 5);