From d3e3224245f8428f1165039e5495ff0c5dcd07ea Mon Sep 17 00:00:00 2001
From: netpro2k <netpro2k@gmail.com>
Date: Mon, 26 Feb 2018 14:21:08 -0800
Subject: [PATCH] Set some rough hand offsets for vive

---
 src/components/hand-controls2.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/components/hand-controls2.js b/src/components/hand-controls2.js
index 3ae67d0bf..e2b5771f2 100644
--- a/src/components/hand-controls2.js
+++ b/src/components/hand-controls2.js
@@ -15,7 +15,11 @@ const GESTURES = {
 const CONTROLLER_OFFSETS = {
   default: new THREE.Matrix4(),
   "oculus-touch-controls": new THREE.Matrix4().makeTranslation(0, -0.015, 0.04),
-  "vive-controls": new THREE.Matrix4().makeTranslation(0, -0.015, 0.04),
+  "vive-controls": new THREE.Matrix4().compose(
+    new THREE.Vector3(0, -0.017, 0.13),
+    new THREE.Quaternion().setFromEuler(new THREE.Euler(-40 * THREE.Math.DEG2RAD, 0, 0)),
+    new THREE.Vector3(1, 1, 1)
+  ),
   "daydream-controls": new THREE.Matrix4().makeTranslation(0, 0, -0.04)
 };
 
-- 
GitLab