diff --git a/src/components/meta-touch-controls.js b/src/components/meta-touch-controls.js index 937ec070ebf..ef9fca95820 100644 --- a/src/components/meta-touch-controls.js +++ b/src/components/meta-touch-controls.js @@ -101,6 +101,20 @@ var CONTROLLER_PROPERTIES = { modelPivotOffset: new THREE.Vector3(0, 0, 0), modelPivotRotation: new THREE.Euler(0, 0, 0) } + }, + 'meta-quest-touch-plus-v2': { + left: { + modelUrl: META_CONTROLLER_MODEL_BASE_URL + '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 + '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) + } } }; @@ -231,7 +245,8 @@ var componentConfig = { this.isTouchV3orPROorPlus = this.displayModel === CONTROLLER_PROPERTIES['oculus-touch-v3'] || this.displayModel === CONTROLLER_PROPERTIES['meta-quest-touch-pro'] || - this.displayModel === CONTROLLER_PROPERTIES['meta-quest-touch-plus']; + this.displayModel === CONTROLLER_PROPERTIES['meta-quest-touch-plus'] || + this.displayModel === CONTROLLER_PROPERTIES['meta-quest-touch-plus-v2']; this.el.setAttribute('gltf-model', modelUrl); },