Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
updated camera rig reference
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Apr 12, 2020
1 parent 2222a71 commit 846c22d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public HandData GetHandData(SpatialInteractionSourceState spatialInteractionSour

// We want the controller to follow the Playspace, so fold in the playspace transform here to
// put the controller pose into world space.
unityJointPositions[i] = MixedRealityToolkit.CameraSystem.CameraRig.PlayspaceTransform.TransformPoint(unityJointPositions[i]);
unityJointOrientations[i] = MixedRealityToolkit.CameraSystem.CameraRig.PlayspaceTransform.rotation * unityJointOrientations[i];
unityJointPositions[i] = MixedRealityToolkit.CameraSystem.MainCameraRig.PlayspaceTransform.TransformPoint(unityJointPositions[i]);
unityJointOrientations[i] = MixedRealityToolkit.CameraSystem.MainCameraRig.PlayspaceTransform.rotation * unityJointOrientations[i];

TrackedHandJoint handJoint = jointIndices[i].ToTrackedHandJoint();
updatedHandData.Joints[(int)handJoint] = new MixedRealityPose(unityJointPositions[i], unityJointOrientations[i]);
Expand Down

0 comments on commit 846c22d

Please sign in to comment.