Ich versuche das "High Energy" nachzubauen. Der Rotor dreht sich, die 6-armige "Spinne" dreht sich um sich selbst, und die Sitzreihen drehen sich auch nochmal um die eigene Achse. Am besten einfach Video schaun:
Code: Alles auswählen
from visual import *
class Hauptarm:
def __init__ (self):
self.rahmen=frame()
self.Rotor=ellipsoid(pos=(0,0,0),length=150,height=150,width=2000,axis=(0,1,0),color=(1,0,0),opacity=0.7,material=materials.emissive,frame=self.rahmen)
self.Rotor.rotate(angle=pi/2,axis=(1,0,0))
self.Endkugel1=sphere(pos=(0,910,0),radius=90,color=(1,0,0),frame=self.rahmen)
self.Endkugel2=sphere(pos=(0,911,0),radius=90,color=(1,1,0),opacity=0.2,frame=self.rahmen)
class Arm:
def __init__ (self):
self.bank=frame()
self.Sitzflaeche1=box(pos=(140,-945,30),length=30,width=30,height=5,color=(0.5,0.5,0.5),frame=self.bank)
self.Lehne1=box(pos=(140,-925,15),length=30,width=5,height=40,color=(0.5,0.5,0.5),frame=self.bank)
self.Sitzflaeche2=box(pos=(180,-945,30),length=30,width=30,height=5,color=(0.5,0.5,0.5),frame=self.bank)
self.Lehne2=box(pos=(180,-925,15),length=30,width=5,height=40,color=(0.5,0.5,0.5),frame=self.bank)
self.Sitzflaeche3=box(pos=(220,-945,30),length=30,width=30,height=5,color=(0.5,0.5,0.5),frame=self.bank)
self.Lehne3=box(pos=(220,-925,15),length=30,width=5,height=40,color=(0.5,0.5,0.5),frame=self.bank)
self.Sitzflaeche4=box(pos=(260,-945,30),length=30,width=30,height=5,color=(0.5,0.5,0.5),frame=self.bank)
self.Lehne4=box(pos=(260,-925,15),length=30,width=5,height=40,color=(0.5,0.5,0.5),frame=self.bank)
self.Sitzflaeche5=box(pos=(300,-945,30),length=30,width=30,height=5,color=(0.5,0.5,0.5),frame=self.bank)
self.Lehne5=box(pos=(300,-925,15),length=30,width=5,height=40,color=(0.5,0.5,0.5),frame=self.bank)
self.Aufhaengung=cylinder(pos=(0,-945,0),length=330,radius=15,color=(1,0.7,0),frame=self.bank)
class Spinne:
def __init__ (self):
self.sitzreihe=frame()
self.spinne=frame()
self.Arm1=Arm()
self.Arm2=Arm()
self.Arm2.bank.rotate(angle=1*pi/3,axis=(0,1,0))
self.Arm3=Arm()
self.Arm3.bank.rotate(angle=2*pi/3,axis=(0,1,0))
self.Arm4=Arm()
self.Arm4.bank.rotate(angle=3*pi/3,axis=(0,1,0))
self.Arm5=Arm()
self.Arm5.bank.rotate(angle=4*pi/3,axis=(0,1,0))
self.Arm6=Arm()
self.Arm6.bank.rotate(angle=5*pi/3,axis=(0,1,0))
a=Hauptarm()
c=Spinne()
def Fahrt():
while True:
rate(25)
a.rahmen.rotate(angle=pi/60,axis=(1,0,0))
c.Arm1.bank.rotate(angle=pi/60,axis=(1,0,0))
c.Arm2.bank.rotate(angle=pi/60,axis=(1,0,0))
c.Arm3.bank.rotate(angle=pi/60,axis=(1,0,0))
c.Arm4.bank.rotate(angle=pi/60,axis=(1,0,0))
c.Arm5.bank.rotate(angle=pi/60,axis=(1,0,0))
c.Arm6.bank.rotate(angle=pi/60,axis=(1,0,0))
Wenn ihr es euch anseht, seht ihr dass die Spinne mit dem Rotor richtig mitdreht. Jetzt sollte sich aber noch die Spinne um sich selbst drehen, und die Arme ebenfalls um sich selbst (siehe Video). Ich versuche schon seit 2 Tagen das zu schaffen, geht aber nicht.