fixed static clone

physics
Fabien Benetou 2 years ago
parent e9cf8e0bf2
commit 0b34186ca4
  1. 2
      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', "")
})
}

Loading…
Cancel
Save