MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Enabling 'Use palm kinematic body' in the hand physics service extension breaks hand tracking

Open MilanPolle opened this issue 6 years ago • 5 comments

When you are using the hand physics service extension and enable the 'use palm kinetic body' option, hand tracking no longer works.

To reproduce: Open the HandPhysicsServiceExample. In the projects window, select the DefaultHandPhysicsServiceProfile. Enable the 'use palm kinematic body option'. Build the project and deploy on the HoloLens 2. Notice hand tracking no longer works.

Unity Version: 2019.3.13f1 MRTK Version: 2.3 Target platform: HoloLens 2

I fixed the problems I found by making the following changes to HandPhysicsService.cs:

Line 39: public GameObject HandPhysicsServiceRoot { get; private set; } = new GameObject("Hand Physics Service"); After line 198: jointKinematicBodies.Clear(); (this seems to be the root of the problem) After line 218: if (parent == null) return false;

MilanPolle avatar May 13 '20 10:05 MilanPolle

@radicalad Have you seen this?

keveleigh avatar May 13 '20 16:05 keveleigh

Ah, yes. this was brought up in #7786 and fixed in #7787.

radicalad avatar May 13 '20 17:05 radicalad

Oh perfect, thanks! @MilanPolle, looks like this has been fixed for the MRTK 2.4 release.

keveleigh avatar May 13 '20 17:05 keveleigh

Sorry, I didn't come across those reported issues. Thanks for the quick replies and good to hear it has been fixed already.

MilanPolle avatar May 13 '20 20:05 MilanPolle

Sorry, I didn't come across those reported issues.

All good! Thanks for taking the initiative in making sure an issue you were seeing gets reported. Closing this out as fixed.

keveleigh avatar May 13 '20 20:05 keveleigh