Skip to content

Commit

Permalink
Ignore node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Chabloz Nicolas (SEC-GC) committed Feb 23, 2022
1 parent 2e45dae commit af539a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
6 changes: 2 additions & 4 deletions src/components/animate-rotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AFRAME.registerComponent('animate-rotation', {
axe: {type: 'string', default: 'x'}
},
init: function () {
console.log(this.data.speed)

},
remove: function () {

Expand All @@ -14,8 +14,6 @@ AFRAME.registerComponent('animate-rotation', {

},
tick: function (elapsed, dt) {
//this.el.setAttribute('rotation', this.data.axe, elapsed / this.data.speed);
this.el.object3D.rotation[this.data.axe] = THREE.MathUtils.degToRad(elapsed / this.data.speed);

this.el.object3D.rotation[this.data.axe] = THREE.MathUtils.degToRad(elapsed / this.data.speed);
}
})

0 comments on commit af539a0

Please sign in to comment.