WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-07-2014, 11:53 AM
wimartin wimartin is offline
Member
 
Join Date: Jul 2014
Posts: 1
Inferring distance traveled

Hey Forum,

First time posting, please forgive the newbie question.

I have an experiment written in Vizard where subjects have to move forward a particular distance. Once they reach the end of the distance, I calculate how far they traveled using the vizmat.distance command. However, in an earlier version of this experiment, I didn't use vizmat.distance, but still collected data, and now I'd like to see if I can go back and infer what distance they were traveling, based on the speed they were moving and how long the trial was. However, this is trickier than I thought, because I'm not sure what unit the speed value is.

For this, I use the CameraHandler module, borrowed from the tutorial here: http://docs.worldviz.com/vizard/#exa...ghlight=camera

At the bottom of that tutorial "def _camUpdate( self, e ):" is what I use for moving the camera viewpoint. Under there is something called e.view.move, where the speed is specified. Does anyone know what e.elapsed is? Is this meters per second, or some other amount of time? Any help would be appreciated, thanks!

~Martin
Reply With Quote
  #2  
Old 07-07-2014, 02:31 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The e.elapsed value represents the time elapsed since the last frame. This is multiplied against a constant value to determine the distance moved each frame in meters. The value passed to e.view.move is the amount to move relative to the current position. It is not a speed. Does this help?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Player - avatar distance bzyqo Vizard 2 08-09-2013 10:16 AM
Draw distance mape2k Vizard 1 05-14-2013 07:56 AM
Camera distance problem CRI Vizard 0 07-28-2010 10:58 AM
wiimote's distance from screen Debbie Vizard 1 11-17-2008 04:17 PM
Can I see infinite distance sled Vizard 2 07-16-2003 04:18 PM


All times are GMT -7. The time now is 02:01 PM.


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