Skip to content

Commit

Permalink
Remove unnecessary transformation in JointFollower
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-shariff committed Jan 15, 2024
1 parent 8cccccd commit 6dda620
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Runtime/Tracking/JointFollower.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,22 +190,13 @@ private void ProcessJointData(XRHand hand)
bool mainPoseSuccess = mainJoint.TryGetPose(out Pose mainJointPose);
bool mainRadiusSuccess = mainJoint.TryGetRadius(out float mainRadius);

if (mainPoseSuccess)
{
mainJointPose = mainJointPose.GetTransformedBy(xrOrigin.transform);
}

XRHandJoint secondJoint;
bool secondPoseSuccess = false;
Pose secondJointPose = default;
if (useSecondJointID)
{
secondJoint = hand.GetJoint(secondJointID);
secondPoseSuccess = secondJoint.TryGetPose(out secondJointPose);
if (secondPoseSuccess)
{
secondJointPose = secondJointPose.GetTransformedBy(xrOrigin.transform);
}
}

if (mainRadiusSuccess)
Expand Down

0 comments on commit 6dda620

Please sign in to comment.