Skip to content
Snippets Groups Projects
Commit cd96c791 authored by Greg Fodor's avatar Greg Fodor
Browse files

Fix up vive offsets

parent a5750adc
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ export const LEFT_CONTROLLER_OFFSETS = { ...@@ -19,7 +19,7 @@ export const LEFT_CONTROLLER_OFFSETS = {
"oculus-touch-controls": new THREE.Matrix4().makeTranslation(-0.025, -0.03, 0.1), "oculus-touch-controls": new THREE.Matrix4().makeTranslation(-0.025, -0.03, 0.1),
"oculus-go-controls": new THREE.Matrix4(), "oculus-go-controls": new THREE.Matrix4(),
"vive-controls": new THREE.Matrix4().compose( "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.Quaternion().setFromEuler(new THREE.Euler(-40 * THREE.Math.DEG2RAD, 0, 0)),
new THREE.Vector3(1, 1, 1) new THREE.Vector3(1, 1, 1)
), ),
...@@ -37,7 +37,7 @@ export const RIGHT_CONTROLLER_OFFSETS = { ...@@ -37,7 +37,7 @@ export const RIGHT_CONTROLLER_OFFSETS = {
"oculus-touch-controls": new THREE.Matrix4().makeTranslation(0.025, -0.03, 0.1), "oculus-touch-controls": new THREE.Matrix4().makeTranslation(0.025, -0.03, 0.1),
"oculus-go-controls": new THREE.Matrix4(), "oculus-go-controls": new THREE.Matrix4(),
"vive-controls": new THREE.Matrix4().compose( "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.Quaternion().setFromEuler(new THREE.Euler(-40 * THREE.Math.DEG2RAD, 0, 0)),
new THREE.Vector3(1, 1, 1) new THREE.Vector3(1, 1, 1)
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment