HTC Vive 與Leap Motion 出現位置錯誤的問題

Leap Motion已經支持VR, 可是官方沒有支持HTC Vive的例子。html

按照官方的文檔, 實際上是有問題的:spa

https://developer.leapmotion.com/documentation/unity/unity/Unity_Custom_Rig.htmlcode

 

Add the LeapVRTemporalWarping script component to the LeapSpace component you just created. Double check that the Head Transform property has been set to your MainCamera and that TrackingAnchor has been set to the TrackingAnchor game object you created a few steps earlier. Apply the following settings to the script:

Set Tween Rotational Warping to 1.
Set Sync Mode to LOW_LATENCY.

問題在於這句話:「Head Transform property has been set to your MainCamera」component

若是你按照官方這樣設置, 兩隻手的模型, 永遠都會在你腦殼上方, 而不是在你前方。orm

 

正確的是什麼呢?htm

 是這樣的:對象

由於對steamVR來講, 有點特別, head 是一個Camera, eye也是一個Camera, 而實際上,這裏Head tranform用Camera(head)纔是正確的。blog

對應的, Tracking Anchor就是Camera(head)的父對象了。ip

相關文章
相關標籤/搜索