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?
triggers
? – Roldantags
– RoldanSteamVR_TrackedObject
is dynamically set to a device, and I can't predict how it will be assigned. Looking for the best method for talking to the SteamVR and OpenVR APIs. – Needhamtags
to differentGameObjects
, that's how you can differentiate them. At least from what I understand from your title. QUOTE: "is a Vive Controller or a Vive Tracker". – Roldan