Basic modification of Ultraleap's wrist tracking by Ultraleap/Pip Turner for use with Meta Quest SDK
Original source code: https://github.com/ultraleap/UnityPlugin/blob/develop/Packages/Tracking%20Preview/HandRays/Runtime/Scripts/HandRays/WristShoulderHandRay.cs
Blog post explaining: https://docs.ultraleap.com/ultralab/far-field-ray-blog.html
How to use:
- Add "Raycast" prefab into hierachy. Populate Right Hand and/or Left Hand with the OVRHands from your OVRRig setup. Do the same with palms (see tooltips for nomenclature).
- Use a target layer to filter raycast hits
- Can use method "ObjectHit()" to handle hits
- NOTE Recommend changing "HandJointId.HandIndex0" to "HandJointId.HandIndex1" in the method "CalculatePinchPosition()" in the main script for truer pinch point accuracy.