array of 4 floats
 - values greater than 0 means that controller device was captured by the camera on last frame.
 - x position (horizontal) of tracked device, in range [-0.5,0.5].
 - y position (vertical) of tracked device, in range [-0.5,0.5].
 - z position (forward) of tracked device, in range [0,1], where 1 is farthest.
Gets unaltered tracking information. In most cases getAcceleratedTrackState function should be used, unless you would like to write your own motion prediction algorithm.
when should be used:
every time you need current tracked device position
typical usage example (Unity):
Code: Select all
//Get top right corner of player camera in 3D space
//Get inverse transform for this point to get bounds for virtual object position on screen.
currGunPos=new Vector3( (data)*maxPos.x, (data)*maxPos.y, 0.3f+0.3f*data);