Skip to content

Commit afe6c7e

Browse files
authored
Merge pull request #9875 from fast-slow-still/hands2.7.0
Fix for OpenXR hand meshes with non-identity transform on Playspace.
2 parents c4bf328 + d51bddc commit afe6c7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/MRTK/Providers/OpenXR/Scripts/OpenXRHandMeshProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public void UpdateHandMesh()
109109
normals = normals.ToArray(),
110110
triangles = triangles.ToArray(),
111111
uvs = handMeshUVs,
112-
position = pose.position,
113-
rotation = pose.rotation
112+
position = MixedRealityPlayspace.TransformPoint(pose.position),
113+
rotation = MixedRealityPlayspace.Rotation * pose.rotation
114114
};
115115

116116
CoreServices.InputSystem?.RaiseHandMeshUpdated(inputSource, handedness, handMeshInfo);

0 commit comments

Comments
 (0)