able to grab tablet in 3rd person

This commit is contained in:
druiz17 2017-09-25 16:36:29 -07:00
parent 191066a111
commit 6332a53ee2

View file

@ -88,13 +88,8 @@ Script.include("/~/system/libraries/utils.js");
this.startNearParentingGrabOverlay = function (controllerData) { this.startNearParentingGrabOverlay = function (controllerData) {
Controller.triggerHapticPulse(HAPTIC_PULSE_STRENGTH, HAPTIC_PULSE_DURATION, this.hand); Controller.triggerHapticPulse(HAPTIC_PULSE_STRENGTH, HAPTIC_PULSE_DURATION, this.hand);
var handJointIndex; this.controllerJointIndex = getControllerJointIndex(this.hand);
// if (this.ignoreIK) { var handJointIndex = this.controllerJointIndex;
// handJointIndex = this.controllerJointIndex;
// } else {
// handJointIndex = MyAvatar.getJointIndex(this.hand === RIGHT_HAND ? "RightHand" : "LeftHand");
// }
handJointIndex = this.controllerJointIndex;
var grabbedProperties = this.getGrabbedProperties(); var grabbedProperties = this.getGrabbedProperties();