WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Getting positional data from tracker (https://forum.worldviz.com/showthread.php?t=3863)

AySz88 08-03-2011 02:17 PM

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?

Jeff 08-03-2011 03:22 PM

You could register a callback function with vizact.ontimer to get the position on a specified interval.


All times are GMT -7. The time now is 04:59 PM.

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