From cd96c791e5967a9c4b6ef3d38b60128d906288e5 Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Sat, 3 Nov 2018 19:23:05 +0000 Subject: [PATCH] Fix up vive offsets --- src/components/hand-controls2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/hand-controls2.js b/src/components/hand-controls2.js index 0e50a1658..fa2cc938c 100644 --- a/src/components/hand-controls2.js +++ b/src/components/hand-controls2.js @@ -19,7 +19,7 @@ export const LEFT_CONTROLLER_OFFSETS = { "oculus-touch-controls": new THREE.Matrix4().makeTranslation(-0.025, -0.03, 0.1), "oculus-go-controls": new THREE.Matrix4(), "vive-controls": new THREE.Matrix4().compose( - new THREE.Vector3(0, -0.017, 0.13), + new THREE.Vector3(0, 0, 0.13), new THREE.Quaternion().setFromEuler(new THREE.Euler(-40 * THREE.Math.DEG2RAD, 0, 0)), new THREE.Vector3(1, 1, 1) ), @@ -37,7 +37,7 @@ export const RIGHT_CONTROLLER_OFFSETS = { "oculus-touch-controls": new THREE.Matrix4().makeTranslation(0.025, -0.03, 0.1), "oculus-go-controls": new THREE.Matrix4(), "vive-controls": new THREE.Matrix4().compose( - new THREE.Vector3(0, -0.017, 0.13), + new THREE.Vector3(0, 0, 0.13), new THREE.Quaternion().setFromEuler(new THREE.Euler(-40 * THREE.Math.DEG2RAD, 0, 0)), new THREE.Vector3(1, 1, 1) ), -- GitLab