getnamo / leap-ue4

Leap Motion plugin for Unreal Engine 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to stop hands from attaching to VR headset in VR?

janimationd opened this issue · comments

Hi, I'm trying to make a VR environment with a table-mounted Leap Motion (please trust me, I need to do it).

Is it possible to tell the plugin to stop snapping the hand models' transforms to the VR headset's position, and instead have them relative to some static position?

Neat use case. To stop auto-adjustment you should look into calling OptimizeForHMD function (https://github.com/getnamo/leap-ue4/blob/master/Plugins/LeapMotion/Source/LeapMotion/Public/LeapController.h#L68) on the LeapController Component. Reverse the default switches to get the behavior you're expecting. Let me know if you run into any bugs on this one.