WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-03-2011, 03:17 PM
AySz88 AySz88 is offline
Member
 
Join Date: Aug 2011
Posts: 13
Getting positional data from tracker

I have an application where a VRPN tracker is linked to an object, and then that link needs to be severed to have the physics simulation take over. (In this case, I'm "tossing" a ball using a HiBall 3000 stylus.)

From what I can tell, the tracker doesn't calculate this (right?), so I need to estimate the object's velocity from position data myself. What's the best way to grab position updates from the tracker in a callback-ish sort of way? I tried redefining the ball's setPosition method, but that doesn't seem to work. Should I define some sort of setter function at all?
Reply With Quote
  #2  
Old 08-03-2011, 04:22 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,462
You could register a callback function with vizact.ontimer to get the position on a specified interval.
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
Use saved text file data as replay sources problem mizutani_jun Vizard 4 10-14-2010 05:49 PM
The problem of tracker using via VRPN _kj_ Vizard 2 08-13-2009 01:03 AM
updating positional data Saz Vizard 8 01-12-2009 05:23 AM
Obtaining Positional Data Plasma Vizard 40 04-04-2006 12:31 PM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 09:48 AM


All times are GMT -7. The time now is 05:05 AM.


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