have you met this problem?I want to get the X,Y,Z values from htc vive HMD in real-time,but i don't know how to do it.I guess whether the htc vive SDK has the special interface for developer?Could you please give me some help?thank you!
Asked
Active
Viewed 1,260 times
2 Answers
0
This suggestion is only valid if Unity is being used. Not sure about getting the coordinates from the HMD, but you can attach a script that detects the position of the GameObject.
this.transform.localPosition.x
this.transform.localPosition.y
this.transform.localPosition.z
These are read only values.
Hope this helps.

Tishbyte
- 40
- 8
0
The SteamVR SDK doesn't seem to expose the raw values of the IMU (inertial measurement unit) to developers. Possible workarounds:
- Using the velocity of the HMD via the SteamVR SKD GetDeviceToAbsoluteTrackingPose
- Calculate the velocity of the HMD manually or by adding a RigidBody component to the main camera (Camera (eye))

Jerome Maurey-Delaunay
- 1,070
- 7
- 6