Xハンドローディング
説明
このイベントはxrhand
によって、追加のハンドARリソースのロードが開始されたときに発行される。
xrhandloading.detail : {maxDetections, pointsPerDetection, rightIndices, leftIndices}
.
プロパテ ィ | 説明 |
---|---|
最大検出数 | 同時に処理できるハンドの最大数。 |
ポイント・パー・ディテクション | ハンドごとに抽出される頂点の数。 |
rightIndices:[{a, b, c}]。 | 手のメッシュの三角形を形成する頂点配列へのインデックス。 |
leftIndices:[{a, b, c}]。 | 手のメッシュの三角形を形成する頂点配列へのインデックス。 |
例
const initMesh = ({detail}) => {
const {pointsPerDetection} = detail
this.el.object3D.add(generateMeshGeometry({pointsPerDetection}))
}
this.el.sceneEl.addEventListener('xrhandloading', initMesh)