Skip to content

Commit b6d62bf

Browse files
added 'controllermodelready'-event to hand-tracking-controls
1 parent fb67c01 commit b6d62bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/hand-tracking-controls.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,11 @@ export var Component = registerComponent('hand-tracking-controls', {
388388
this.updateModelMaterial();
389389
this.setupChildrenEntities();
390390
this.el.setObject3D('mesh', mesh);
391+
this.el.emit('controllermodelready', {
392+
name: 'hand-tracking-controls',
393+
model: this.data.model,
394+
rayOrigin: new THREE.Vector3(0, 0, 0)
395+
});
391396
},
392397

393398
setupChildrenEntities: function () {

0 commit comments

Comments
 (0)