你有没有遇到这个问题?我想从htc vive HMD实时获取X,Y,Z值,但我不知道该怎么做。我猜是htc vive SDK是否有开发人员的特殊界面你能给我一些帮助吗?谢谢!
此建议仅在使用Unity时有效。不确定从HMD获取坐标,但您可以附加一个检测GameObject位置的脚本。
this.transform.localPosition.x
this.transform.localPosition.y
this.transform.localPosition.z
这些是只读值。
希望这可以帮助。
SteamVR SDK doesn't seem to expose the raw values of the IMU(惯性测量单元)给开发人员。可能的解决方法: