Skip to content

Commit

Permalink
Fixed Readme to correctly modify rotation of element
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed Mar 2, 2017
1 parent ec5ae37 commit bacf5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ different objects.
```js
AFRAME.registerComponent('rotate-on-tick', {
tick: function (t, dt) {
this.object3D.rotation.x += .001;
this.el.object3D.rotation.x += .001;
}
});

Expand Down

0 comments on commit bacf5ef

Please sign in to comment.