WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-27-2008, 12:25 PM
erchrastil erchrastil is offline
Member
 
Join Date: Feb 2008
Posts: 17
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?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC