- Home /
Use SteamVR and Vive controller or tracker ONLY for position tracking, no headset
I am VERY new to Unity and integration with SteamVR, so any help would be appreciated -- I want to use an HTC Vive controller or tracker for position tracking only, and without using the headset (aside from plugging it in and leaving it on the ground). I just want to be able to get x,z coordinates while someone walks back and forth in a room, but without displaying any VR content or using the headset at all. I have a Scene in Unity that is basically one large plane, and my thought is to make the controller a Game Object and then attach a script to it that's continuously writing out its position, velocity, and a time stamp to something like a .txt or .csv, but I'm stuck on the first step of adding it to my Scene.
Answer by artygrand · Mar 03, 2021 at 02:00 PM
Use [CameraRig] prefab as intended and place your logging script to hand anchors
Thanks, but this is too high level of an answer for the extent of my experience. I've tried using the [CameraRig] "as intended," but i don't want the camera view to be attached to the headset, and it also seems like the headset has to be active to be able to track the controller (or, at least, the display in the SteamVR window goes away and so my assumption is everything stops being tracked). Again, I'm very novice. Im also not sure what you mean by hand anchors.
If you need static camera - disable camera component in CameraRig and create new gameobgect with camera component.
I don't think that vr can work with headset unattached
hand anchors - gameobjects inside CameraRig Controller (left) and Controller (right)
Your answer
Follow this Question
Related Questions
SteamVR 2.3 - Vive controllers aren't tracking after scene load 1 Answer
How to write a script to disable position and rotation tracking for VR 0 Answers
XR Controller (XR Ray Interactor) rotation and position offset? 5 Answers
how to save the values of hmd and controller position rotation in a list 0 Answers
Can I use oculus rift hand tracking for locomotion? 0 Answers