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