-
Notifications
You must be signed in to change notification settings - Fork 1
/
animation2.scad
80 lines (57 loc) · 1.18 KB
/
animation2.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
echo ($t);
A=90*sin(360*$t*10);
B=90*sin(360*$t*5);
C=90*sin(360*$t*5);
FootAngle=(90*sin(360*$t*10));
WristAngle=(90*sin(360*$t*5));
HipAngle=(90*sin(360*$t));
include <./bug.scad>;
leg_count=5;
hip_angle=[30+(C/2),(C/2)-30,30+(C/2),(C/2)-30,0,0,0,0];
foot_angle=[(B/2)-70,(B/2)-50,(B/2)-70,(B/2)-50,-30,-10,0,0];
//Base translation
translate([-110,0,75])rotate([0,35,180]){
//Hip translation
rotate([0,0,HipAngle])
translate([59.8,-11,0])
{
//Wrist translation
rotate([180,WristAngle,0])
translate([27,0,11]){
//foot translation
translate([24,0,-11])
rotate([90,FootAngle,180]){
color("gray")
import("./servo.stl");
color("red")
import("./tenticle_foot.stl");
}
translate([24,0,-11])
rotate([90,0,180])
color("white")
import("./ServoSmallArm.stl");
color("yellow")
import("./tenticle-ankle.stl");
color("white")
translate([-27,0,-11])
rotate([-90,0,0])
import("./ServoSmallArm.stl");
}
rotate([90,0,0]){
color("gray")
import("./servo.stl");
color("red")
import("./Tenticle_arm_joint.stl");
color("white")
translate([-60,1,-11])
rotate([-90,0,0])
import("./ServoSmallArm.stl");
}
}
rotate([0,0,180]){
color("grey")
import("./servo.stl");
color("yellow")
import("./tentacle-hip.stl");
}
}