I am using NewtonVR for the HTC Vive, so I use the SteamVR Camera Rig prefab and add NVRPlayer, NVRhead and NVRHand scripts. I recently received the Vive Tracker and am trying to make it work with NewtonVR.
I have added a SteamVR_TrackedObject script on the Tracker GameObject and gave it also an NVRHand script, because otherwise I can not attach any object to it. And then I removed the NVRHand script from one of the controllers, so there are stil two NVRHands. I do the interaction by script which has a trackedObject GameObject and a tracker NVRHand and then does:
Now I noticed that NewtonVR changes the Tracker device ID to one of the controllers, meaning that the object that I want to attach to the tracker gets attached to one of the controllers. I also noticed that when running the scene the GameObjects with an NVRHand get an additional SteamVR_TrackedObject script.
Can someone explain why that additional SteamVR_TrackedObject script is added and why the device index is changed?