From d9f5a0ccaf7ab19227b46d0c106f01dbf5512019 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Fri, 1 Apr 2016 17:17:21 -0700 Subject: [PATCH] experiment --- examples/controllers/handControllerGrab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index 20e6eeb3fa..59280af446 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -1439,7 +1439,7 @@ function MyController(hand) { this.offsetPosition = Vec3.multiplyQbyV(Quat.inverse(Quat.multiply(handRotation, this.offsetRotation)), offset); if (this.temporaryPositionOffset && (this.state == STATE_EQUIP || this.state == STATE_HOLD)) { this.offsetPosition = this.temporaryPositionOffset; - hasPresetPosition = true; + // hasPresetPosition = true; } } @@ -1464,6 +1464,7 @@ function MyController(hand) { reparentProps["localRotation"] = this.offsetRotation; } Entities.editEntity(this.grabbedEntity, reparentProps); + Messages.sendMessage('Hifi-Object-Manipulation', JSON.stringify({ action: 'equip', grabbedEntity: this.grabbedEntity