erde.py
erde.py — text/python-source, 1 KB
Dateiinhalt
# rotation erde from visual import * range = 5 erde = box(material=materials.earth) erde.up = (1,1,0) print "pos: %s" %erde.pos print "axis: %s" %erde.axis print "up: %s" %erde.up erdetext = label() while True: rate(50) erde.rotate(angle=pi/1000, axis = (1,0,0)) if scene.kb.keys: s = scene.kb.getkey() if((s=='backspace' or s=='delete') and len(erdetext.text)) > 0: erdetext.text = erdetext.text[:-1] elif s=='shift+delete': erdetext.text = '' elif len(s) >= 1: erdetext.text += s