Skip to main content

xrhandscanning

Description​

This event is emitted by xrhand when all hand AR resources have been loaded and scanning has begun.

xrhandscanning.detail : {maxDetections, pointsPerDetection, rightIndices, leftIndices}

PropertyDescription
maxDetectionsThe maximum number of hands that can be simultaneously processed.
pointsPerDetectionNumber of vertices that will be extracted per hand.
rightIndices: [{a, b, c}]Indexes into the vertices array that form the triangles of the hand mesh.
leftIndices: [{a, b, c}]Indexes into the vertices array that form the triangles of the hand mesh.

Example​

const initMesh = ({detail}) => {
const {pointsPerDetection} = detail
this.el.object3D.add(generateMeshGeometry({pointsPerDetection}))
}
this.el.sceneEl.addEventListener('xrhandscanning', initMesh)