Skip to content

Commit

Permalink
Add suppport for Meta Quest 3 controllers (quest touch plus)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Oct 2, 2023
1 parent 92c1039 commit f154399
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/components/oculus-touch-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@ var CONTROLLER_PROPERTIES = {
modelPivotOffset: new THREE.Vector3(0, 0, 0),
modelPivotRotation: new THREE.Euler(0, 0, 0)
}
},
'meta-quest-touch-plus': {
left: {
modelUrl: META_CONTROLLER_MODEL_BASE_URL + 'quest-touch-plus-left.glb',
rayOrigin: {
origin: {x: 0.0065, y: -0.0186, z: -0.05},
direction: {x: 0.12394785839500175, y: -0.5944043672340157, z: -0.7945567170519814}
},
modelPivotOffset: new THREE.Vector3(0, 0, 0),
modelPivotRotation: new THREE.Euler(0, 0, 0)
},
right: {
modelUrl: META_CONTROLLER_MODEL_BASE_URL + 'quest-touch-plus-right.glb',
rayOrigin: {
origin: {x: -0.0065, y: -0.0186, z: -0.05},
direction: {x: -0.12394785839500175, y: -0.5944043672340157, z: -0.7945567170519814}
},
modelPivotOffset: new THREE.Vector3(0, 0, 0),
modelPivotRotation: new THREE.Euler(0, 0, 0)
}
}
};

Expand Down

0 comments on commit f154399

Please sign in to comment.