Skip to content

Commit 13f1677

Browse files
author
lawwong
committed
Merge pr#110
close #110
2 parents 5ab58ca + b94e7c0 commit 13f1677

File tree

1 file changed

+1
-1
lines changed
  • Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/RoleMaps

1 file changed

+1
-1
lines changed

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/RoleMaps/BodyRole.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void Refresh()
7373
{
7474
if (!IsTrackingDevice(i)) { continue; }
7575

76-
var relatedCenterPos = centerPoseInverse.InverseTransformPoint(VRModule.GetCurrentDeviceState(i).pose.pos);
76+
var relatedCenterPos = centerPoseInverse.TransformPoint(VRModule.GetCurrentDeviceState(i).pose.pos);
7777
m_directionPoint[i] = HandRoleHandler.GetDirectionPoint(new Vector2(relatedCenterPos.x, -relatedCenterPos.y));
7878
m_distanceSqr[i] = relatedCenterPos.sqrMagnitude / (halfHeight * halfHeight);
7979

0 commit comments

Comments
 (0)