Note: This set of instructions relates to the old Oculus OVR package, and does not directly work with the new Unity Native VR feature.
Using my Leap Avatar Hands controller with the Oculus Rift DK2 is quite easy. Leap have provided examples of how to use the Leap motion with the Oculus Rift as part of their LeapMotion+OVR package. Using my controller works the same way as theirs.
Essentially you need to do only a few things:
- Add an Oculus OVR Camera Rig from the Oculus provided Unity 4 Integration package onto your avatar, just in front of their eyes.
- Drag the LeapHandController GameObject I provided onto the Oculus Camera Rig’s CenterEyeAnchor transform.
- Set its position to 0,0,0
- Set its rotation to 270,180,0 (this mimics the physical orientation that the Leap Motion device will have when it’s attached to the front of your Oculus Rift headset).
- Set the “Is Head Mounted” flag to true in the IKLeap Hand Controller component.
- Move the LeapHandController object along the z-axis so that it is a little ways in front of the camera rig object. Tweak this location to suit.
When you’re done it’ll look like the screenshot provided above.