Skip to content

Commit

Permalink
Networked: fix hand tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
avdynut committed Dec 13, 2023
1 parent 2bc7066 commit 47eb648
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
init: function () {
var el = this.el;
this.trackingControls = el.components['hand-tracking-controls'];
this.trackingControls.initDotsModel = this.initDotsModel();

this.onExitVR = AFRAME.utils.bind(this.onExitVR, this);
el.sceneEl.addEventListener('exit-vr', this.onExitVR);
},

initDotsModel: function () {
this.trackingControls.initDotsModel();

tick: function () {
var jointEls = this.trackingControls.jointEls;

for (var i = 0; i < jointEls.length; i++) {
Expand Down

0 comments on commit 47eb648

Please sign in to comment.