Code: Alles auswählen
from visual import *
L = 5
hilfe1 = curve(pos=[(0,0,0), (0,1,0)], color=color.green)
hilfe2 = curve(pos=[(0,0,0), (0,0,1)], color=color.red)
teil01 = curve(pos=[(0,0,0), (L,0,0)])
teil02 = curve(pos=[(L,0,0), (2*L,0,0)])
teil03 = curve(pos=[(2*L,0,0), (3*L,0,0)])
teil04 = curve(pos=[(3*L,0,0), (4*L,0,0)])
teil05 = curve(pos=[(4*L,0,0), (5*L,0,0)])
teil10 = curve(pos=[(0,0,0), (cos(60*pi/180)*L,sin(60*pi/180)*L,0)])
teil11 = curve(pos=[(L,0,0), (cos(60*pi/180)*L+L,sin(60*pi/180)*L,0)])
teil12 = curve(pos=[(2*L,0,0), (cos(60*pi/180)*L+2*L,sin(60*pi/180)*L,0)])
teil13 = curve(pos=[(3*L,0,0), (cos(60*pi/180)*L+3*L,sin(60*pi/180)*L,0)])
teil14 = curve(pos=[(4*L,0,0), (cos(60*pi/180)*L+4*L,sin(60*pi/180)*L,0)])
teil20 = curve(pos=[(L,0,0), (cos(120*pi/180)*L+L,sin(120*pi/180)*L,0)])
teil21 = curve(pos=[(2*L,0,0), (cos(120*pi/180)*L+2*L,sin(120*pi/180)*L,0)])
teil22 = curve(pos=[(3*L,0,0), (cos(120*pi/180)*L+3*L,sin(120*pi/180)*L,0)])
teil23 = curve(pos=[(4*L,0,0), (cos(120*pi/180)*L+4*L,sin(120*pi/180)*L,0)])
teil24 = curve(pos=[(5*L,0,0), (cos(120*pi/180)*L+5*L,sin(120*pi/180)*L,0)])
teil30 = curve(pos=[(cos(60*pi/180)*L,sin(60*pi/180)*L,0), (cos(60*pi/180)*L+L,sin(60*pi/180)*L,0)])
teil31 = curve(pos=[(cos(60*pi/180)*L+L,sin(60*pi/180)*L,0), (cos(60*pi/180)*L+2*L,sin(60*pi/180)*L,0)])
teil32 = curve(pos=[(cos(60*pi/180)*L+2*L,sin(60*pi/180)*L,0), (cos(60*pi/180)*L+3*L,sin(60*pi/180)*L,0)])
teil33 = curve(pos=[(cos(60*pi/180)*L+3*L,sin(60*pi/180)*L,0), (cos(60*pi/180)*L+4*L,sin(60*pi/180)*L,0)])
Habt ihr eine Idee?
Wie kann ich da die Gravitation mit reinbringen?