using
www.vpython.org.
according to:
http://www.vpython.org/webdoc/visual/cylinder.html
http://www.vpython.org/webdoc/visual/index.html
it should work when updating position but the folowing happens:
i get this:
Traceback (most recent call last):
File "C:\Users\saftarn\Desktop\pythonkod\cyl.py", line 13, in <module>
rod.pos(15,11,8)
TypeError: 'Vector' object is not callable
when running this:
Code:
from visual import *
rod = cylinder(pos=(0,0,0), axis=(1,3,0), radius=0.3)
rod.color = (0,0,2)
for haha in range (1000000):
x=2
x=x+x+x+x+x+x/2
rod.color = (1,0,0)
rod.pos(0,0,6)
anyone can tell me what im doing wrong?
the color changes but the placement of the cylinder doesnt.
the for-loop is just so i can see that it is first blue then red. is there a pause(time)-function in python?