Skip to content

Commit 6afdce2

Browse files
authored
invert sensor axis
1 parent dbefaf1 commit 6afdce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marble_webapp/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Game {
7777
window.addEventListener('devicemotion', e => {
7878
if (e.accelerationIncludingGravity) {
7979
// Adjust axis for intuitive control
80-
this.tilt.x = e.accelerationIncludingGravity.x * 2;
80+
this.tilt.x = e.accelerationIncludingGravity.x * -2;
8181
this.tilt.y = e.accelerationIncludingGravity.y * -2;
8282
}
8383
});

0 commit comments

Comments
 (0)