We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ab58ca + b94e7c0 commit 13f1677Copy full SHA for 13f1677
Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveRole/RoleMaps/BodyRole.cs
@@ -73,7 +73,7 @@ public void Refresh()
73
{
74
if (!IsTrackingDevice(i)) { continue; }
75
76
- var relatedCenterPos = centerPoseInverse.InverseTransformPoint(VRModule.GetCurrentDeviceState(i).pose.pos);
+ var relatedCenterPos = centerPoseInverse.TransformPoint(VRModule.GetCurrentDeviceState(i).pose.pos);
77
m_directionPoint[i] = HandRoleHandler.GetDirectionPoint(new Vector2(relatedCenterPos.x, -relatedCenterPos.y));
78
m_distanceSqr[i] = relatedCenterPos.sqrMagnitude / (halfHeight * halfHeight);
79
0 commit comments