From 6dcce0e953038e6f248ee9d9ee7b40f1b16c5343 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Thu, 23 Aug 2018 10:59:23 +1200 Subject: [PATCH] Revert display test to depending just on hand to camera angle for now --- scripts/system/miniTablet.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/system/miniTablet.js b/scripts/system/miniTablet.js index 5c950cd594..17b1587604 100644 --- a/scripts/system/miniTablet.js +++ b/scripts/system/miniTablet.js @@ -409,8 +409,7 @@ handOrientation = Quat.multiply(MyAvatar.orientation, MyAvatar.getAbsoluteJointRotationInObjectFrame(jointIndex)); cameraToHandDirection = Vec3.normalize(Vec3.subtract(handPosition, Camera.position)); - return Vec3.dot(cameraToHandDirection, Quat.getForward(handOrientation)) > MIN_HAND_CAMERA_ANGLE_COS - && Vec3.dot(cameraToHandDirection, Quat.getForward(Camera.orientation)) > MIN_HAND_CAMERA_ANGLE_COS; + return Vec3.dot(cameraToHandDirection, Quat.getForward(handOrientation)) > MIN_HAND_CAMERA_ANGLE_COS; } function enterProxyHidden() {