What is the best way to determine whether a SteamVR_TrackedObject
is a Vive Controller and a Vive Tracker?
When 0 Controllers and 1 Tacker is paired:
The Tracker is taken as Controller (right)
of the CameraRig
.
When 1 Controller and 1 Tacker is paired:
The Tracker is set to Device 2.
When 2 Controllers and 1 Tacker is paired:
Creating a third SteamVR_TrackedObject
and placing it in the CameraRig
's objects
array. Also when a controller looses tracking so does the tracker.
In each scenario the Tracker ends up being a different SteamVR_TrackedObject.index
. What is the best way to check if a SteamVR_TrackedObject
is a Tracker, or to find which index
the Tracker is?