View Single Post
  #1  
Old 08-03-2011, 02: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