|
#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
You could register a callback function with vizact.ontimer to get the position on a specified interval.
|
|
|
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 |