Skip to content

Commit 7c645f7

Browse files
committed
Doc the joint conversion method
1 parent ffd3049 commit 7c645f7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Assets/MixedRealityToolkit.Providers/WindowsMixedReality/XRSDK/Controllers/WindowsMixedRealityXRSDKArticulatedHand.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,16 @@ private void UpdateIndexFingerData(MixedRealityInteractionMapping interactionMap
275275
}
276276
}
277277

278+
/// <summary>
279+
/// Converts a Unity finger bone into an MRTK hand joint.
280+
/// </summary>
281+
/// <remarks>
282+
/// For HoloLens 2, Unity provides four joints per finger, in index order of metacarpal (0) to tip (4).
283+
/// The first joint for the thumb is the wrist joint. Palm joint is not provided.
284+
/// </remarks>
285+
/// <param name="finger">The Unity classification of the current finger.</param>
286+
/// <param name="index">The Unity index of the current finger bone.</param>
287+
/// <returns>The current Unity finger bone converted into an MRTK joint.</returns>
278288
private TrackedHandJoint ConvertToTrackedHandJoint(HandFinger finger, int index)
279289
{
280290
switch (finger)

0 commit comments

Comments
 (0)