vizact.fall
i'm trying to make an environment using a tracker that gives a visual appearance of falling, but the actual tracker doesn't move. i have something that works fine when i'm just using keyboard commands to move, but it doesn't seem to work with the tracker.
here is the code i'm using:
*****************
fallAction = vizact.fall(-28.18)
if view.getPosition(mode=viz.ABS_GLOBAL)[0] > 1.0
view.add(fallAction)
*****************
this is enclosed within a timer loop that generally controls all of the actions:
def masterLoop(num):
.
.
.
viz.callback(viz.TIMER_EVENT,masterLoop)
viz.starttimer(0,1/60.0,viz.FOREVER)
but here is the error message i get, which seems to want some sort of timer:
AttributeError: 'VizFallAction' object has no attribute 'elapsed'
Traceback (most recent call last):
File "C:\Program Files\WorldViz\Vizard30\python\viz.py", line 8030, in __update
curAction.update(elaps,curAction._obj_)
File "C:\Program Files\WorldViz\Vizard30\python\vizact.py", line 479, in update
self.elapsed += elapsed
any suggestions?
|