Mixedrealitytoolkit-unity: Enabling 'Use palm kinematic body' in the hand physics service extension breaks hand tracking

Created on 13 May 2020  路  5Comments  路  Source: microsoft/MixedRealityToolkit-Unity

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;

Bug

Most helpful comment

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

All 5 comments

@radicalad Have you seen this?

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

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings