From d8797ef9d76ca112746c974e6f885d38200ef93f Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Tue, 3 Nov 2015 15:56:37 -0800 Subject: [PATCH] Initialize relativePosition/Rotation --- examples/controllers/handControllerGrab.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index 936a00db07..a8919105d1 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -176,6 +176,9 @@ function MyController(hand) { this.pointer = null; // entity-id of line object this.triggerValue = 0; // rolling average of trigger value this.rawTriggerValue = 0; + + this.offsetPosition = { x: 0.0, y: 0.0, z: 0.0 }; + this.offsetRotation = { x: 0.0, y: 0.0, z: 0.0, w: 1.0 }; var _this = this;