WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 06-26-2014, 05:58 AM
Erikvdb Erikvdb is offline
Member
 
Join Date: May 2013
Posts: 63
Hi Emily,
Velocity is distance over time. In your code, that last element isn't specified, so I assume Vizard just applies the same translation regardless of how much time has past since updating the last frame. Of course, the problem is that frametimes vary all the time, maybe just very slightly if it runs very stable on one machine, but on other hardware you'll get totally different timings.

Add viz.elapsed() or viz.getFrameElapsed() as an additional multiplier and adjust your MOVE_SPEED_MULTIPLIER accordingly (the new speed is likely going to be very slow)

So try:
Code:
tomove = mazeExptParams.MOVE_SPEED*MOVE_SPEED_MULTIPLIER*viz.getFrameElapsed()
#etc.
And see if that helps.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
random speed and associated coding Saz Vizard 1 05-20-2010 04:03 AM


All times are GMT -7. The time now is 06:13 PM.


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