|
From: alessandro <bom...@gm...> - 2009-04-18 15:58:33
|
I want to rotate 90° around the center objects with an animation. I
tried this:
from visual import *
ball = sphere(pos=(-5,0,0), radius=0.5, color=color.red)
wallR = box(pos=(6,0,0), size=(0.2,4,4), color=color.green)
alfa=0
while alfa < radians(90):
rate(20)
scene.forward = scene.forward.rotate(angle=alfa, axis=(0,1,0))
alfa += radians(1)
both the sphere & box rotate but they rotate for not only for 90° but
serveral time. Where is the error?
|