WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #17  
Old 11-28-2007, 11:36 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I tried those time values and they seem to work fine. Here is the script I used:
Code:
import viz
viz.go()

ball = viz.add('ball.wrl',pos=(0,1,5))

def WriteFlag():
	global startTime
	now = viz.tick()
	print now - startTime
	startTime = now
	
movetime = [.05, .25, .5, 1, 2]
for time in movetime:
	MoveRoom = vizact.sequence(vizact.move(0,0,(0.12/time),time), vizact.move(0,0,(-0.12/time),time), int(30/time))
	ball.addAction(MoveRoom)
	ball.addAction(vizact.call( WriteFlag ))

startTime = viz.tick()
And here is the output I got:
Code:
60.0330525563
60.032436376
60.032417561
60.0325621751
60.0324703632
I also manually timed it with a clock and it was correct.

Is your framerate very low?
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 12:36 AM.


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