provencher / MRTK-Quest

MRTK-Quest: Mixed Reality Toolkit (MRTK) extension bridge for Oculus Quest + Rift / S
Other
389 stars 67 forks source link

Grabing only with middle finger #72

Closed martdob closed 4 years ago

martdob commented 4 years ago

The MRTK port to Oculus hand tracking is excellent! Now, I would like to grab a weapon and shoot with the index finger. Since the grabbing works with the index finger the shooting is not possible. I tried to modify QculusQuestHands.cs file. I was focusing on the the section containing

isIndexGrabbing = HandPoseUtils.IsIndexGrabbing(ControllerHandedness); and float indexFingerCurl = HandPoseUtils.IndexFingerCurl(ControllerHandedness);

However, it did not work as expected. Have you got any other idea?

provencher commented 4 years ago

Hi @martdob.

Here are the relevant things you have to modify

IsGrabbing is queried here in the event system image

Then you should be able to simply modify IsGrabbing here image