Skip to content

Commit 0687dfe

Browse files
author
ChengNan Yang
committed
Update Wave pinch ray status
* Check if pinch data state type is WVR_HandPoseType_Invalid
1 parent ff7eeff commit 0687dfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Assets/HTC.UnityPlugin/VRModule/Submodules/WaveHandTrackingSubmodule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static bool TryGetLeftPinchRay(out Vector3 origin, out Vector3 direction)
200200
Coordinate.GetVectorFromGL(pinch.pinch.origin, out origin);
201201
Coordinate.GetVectorFromGL(pinch.pinch.direction, out direction);
202202

203-
return true;
203+
return pinch.state.type != WVR_HandPoseType.WVR_HandPoseType_Invalid;
204204
}
205205

206206
public static bool TryGetRightPinchRay(out Vector3 origin, out Vector3 direction)
@@ -217,7 +217,7 @@ public static bool TryGetRightPinchRay(out Vector3 origin, out Vector3 direction
217217
Coordinate.GetVectorFromGL(pinch.pinch.origin, out origin);
218218
Coordinate.GetVectorFromGL(pinch.pinch.direction, out direction);
219219

220-
return true;
220+
return pinch.state.type != WVR_HandPoseType.WVR_HandPoseType_Invalid;
221221
}
222222

223223
private enum FeatureActivity

0 commit comments

Comments
 (0)