Scene flying controls
From GeoMod
Enables automatic rotation of scenes.
[edit]
Software
Copy and paste the following file as uFly.py.
from visual import *
def rotate_view(angle=0, raxis=(0,0,1),
nsteps=1, drate = 30):
'''rotates view by angle degrees about the raxis using nsteps steps with an animation rate of drate'''
if nsteps == 0:
print "nsteps must not be equal to zero"
dangle = radians(float(angle)/float(nsteps))
for i in range(nsteps):
rate(drate)
scene.forward = rotate(scene.forward, dangle, raxis)

