Skip to content

Commit 8aeed7b

Browse files
committed
boilerplating
1 parent fe847c2 commit 8aeed7b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

dist/aframe-invr-inputs-component.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
AFRAME.registerComponent('speech-command-input', {
2+
// modify an entity based on a speech command
3+
schema: { unit: 1 },
4+
5+
init: function(){},
6+
7+
update: function () {
8+
var object3D = this.el.object3D; var data = this.data; object3D.position.set(data.x, data.y, data.z); },
9+
10+
cmd_move_left: function(){
11+
var object3D = this.el.object3D; var data = this.data; object3D.position.set(data.x-unit, data.y, data.z); },
12+
cmd_move_right: function(){},
13+
cmd_move_up: function(){},
14+
cmd_move_down: function(){},
15+
cmd_move_forward: function(){},
16+
cmd_move_backward: function(){},
17+
});

examples/index.html

Whitespace-only changes.

0 commit comments

Comments
 (0)