Go to the documentation of this file.
13 % Now we define the base and the platforma as equilater triangles
14 % with the given parameters
16 % Size of the base and platform sides
25 % Base Points (wrt the base reference frame)
51 % Platform Points (wrt the platform reference frame)
77 sx := (b1x+b2x+b3x+b4x+b5x+b6x)/6
78 sy := (b1y+b2y+b3y+b4y+b5y+b6y)/6
79 sz := (b1z+b2z+b3z+b4z+b5z+b6z)/6+1
85 base : body "bodies/triangle1" color (0.1,0.1,0.1)
87 platform: body "bodies/triangle2" color (0.1,0.1,0.1)
88 sphere 1.5*rl (sx,sy,sz) red
89 cylinder rl*0.8 (b2x,b2y,b2z) (sx,sy,sz) color (0.1,0.1,0.1)
90 cylinder rl*0.8 (b4x,b4y,b4z) (sx,sy,sz) color (0.1,0.1,0.1)
91 cylinder rl*0.8 (b6x,b6y,b6z) (sx,sy,sz) color (0.1,0.1,0.1)
95 SPH_SPH leg1 : base (a1x,a1y,a1z)
96 platform (b1x,b1y,b1z)
101 SPH_SPH leg2 : base (a2x,a2y,a2z)
102 platform (b2x,b2y,b2z)
107 SPH_SPH leg3 : base (a3x,a3y,a3z)
108 platform (b3x,b3y,b3z)
113 SPH_SPH leg4 : base (a4x,a4y,a4z)
114 platform (b4x,b4y,b4z)
119 SPH_SPH leg5 : base (a5x,a5y,a5z)
120 platform (b5x,b5y,b5z)
125 SPH_SPH leg6 : base (a6x,a6y,a6z)
126 platform (b6x,b6y,b6z)
|
Follow us!