diff --git a/index.html b/index.html index 65a848d..87a9cb2 100644 --- a/index.html +++ b/index.html @@ -2359,9 +2359,11 @@ AFRAME.registerComponent('dynamic-unless-picked', { let el = this.el el.setAttribute('dynamic-body', "") this.el.addEventListener('picked', function (event) { + el.removeAttribute('dynamic-body') el.setAttribute('static-body', "") }) this.el.addEventListener('released', function (event) { + el.removeAttribute('static-body') el.setAttribute('dynamic-body', "") }) }