Merge pull request #10409 from hyperlogic/bugfix/hand-lasers-in-third-person-view

Hand controller lasers work better in thirdPerson camera mode.
This commit is contained in:
Chris Collins 2017-05-10 10:35:35 -07:00 committed by GitHub
commit 3b5b567578

View file

@ -1376,7 +1376,9 @@ function MyController(hand) {
visible: true,
alpha: 1,
parentID: AVATAR_SELF_ID,
parentJointIndex: this.controllerJointIndex,
parentJointIndex: MyAvatar.getJointIndex(this.hand === RIGHT_HAND ?
"_CAMERA_RELATIVE_CONTROLLER_RIGHTHAND" :
"_CAMERA_RELATIVE_CONTROLLER_LEFTHAND"),
endParentID: farParentID
};
this.overlayLine = Overlays.addOverlay("line3d", lineProperties);