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}
| Property | Description | 
|---|---|
| maxDetections | The maximum number of hands that can be simultaneously processed. | 
| pointsPerDetection | Number 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)