From 6332a53ee2bc9745ff7d0e5d9a8729a5be5f8759 Mon Sep 17 00:00:00 2001 From: druiz17 Date: Mon, 25 Sep 2017 16:36:29 -0700 Subject: [PATCH] able to grab tablet in 3rd person --- .../controllerModules/nearParentGrabOverlay.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/system/controllers/controllerModules/nearParentGrabOverlay.js b/scripts/system/controllers/controllerModules/nearParentGrabOverlay.js index 8d093afe2c..f9557f685f 100644 --- a/scripts/system/controllers/controllerModules/nearParentGrabOverlay.js +++ b/scripts/system/controllers/controllerModules/nearParentGrabOverlay.js @@ -88,13 +88,8 @@ Script.include("/~/system/libraries/utils.js"); this.startNearParentingGrabOverlay = function (controllerData) { Controller.triggerHapticPulse(HAPTIC_PULSE_STRENGTH, HAPTIC_PULSE_DURATION, this.hand); - var handJointIndex; - // if (this.ignoreIK) { - // handJointIndex = this.controllerJointIndex; - // } else { - // handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand"); - // } - handJointIndex = this.controllerJointIndex; + this.controllerJointIndex = getControllerJointIndex(this.hand); + var handJointIndex = this.controllerJointIndex; var grabbedProperties = this.getGrabbedProperties();