Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/components/meta-touch-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + 'quest-touch-plus-v2-left.glb',
rayOrigin: { origin: {x: 0.0065, y: -0.0186, z: -0.05}, direction: {x: 0.1239, y: -0.5944, z: -0.7945} },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason the values for direction are truncated? I would expect it to be identical to the meta-quest-touch-plus bar the modelUrl.

modelPivotOffset: new THREE.Vector3(0, 0, 0),
modelPivotRotation: new THREE.Euler(0, 0, 0)
},
right: {
modelUrl: META_CONTROLLER_MODEL_BASE_URL + 'quest-touch-plus-v2-right.glb',
rayOrigin: { origin: {x: -0.0065, y: -0.0186, z: -0.05}, direction: {x: -0.1239, y: -0.5944, z: -0.7945} },
modelPivotOffset: new THREE.Vector3(0, 0, 0),
modelPivotRotation: new THREE.Euler(0, 0, 0)
}
}
};

Expand Down Expand Up @@ -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);
},

Expand Down