Skip to content

Commit

Permalink
Hide hand-tracking entity children if tracked hand not available
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Dec 6, 2023
1 parent bbe74f5 commit 1208ae2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/hand-tracking-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ module.exports.Component = registerComponent('hand-tracking-controls', {
this.el.addEventListener('child-attached', this.onChildAttached);

this.el.object3D.visible = false;
this.wristObject3D.visible = false;
},

onChildAttached: function (evt) {
Expand Down Expand Up @@ -342,6 +343,7 @@ module.exports.Component = registerComponent('hand-tracking-controls', {
}

this.el.object3D.visible = true;
this.wristObject3D.visible = true;
},

initDotsModel: function () {
Expand Down

0 comments on commit 1208ae2

Please sign in to comment.