Skip to content

Commit

Permalink
Added makefile and updated to latest webvr polyfill.
Browse files Browse the repository at this point in the history
  • Loading branch information
borismus committed Aug 9, 2015
1 parent c35fb6e commit a6294c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
default:
browserify src/main.js > build/webvr-manager.js

watch:
watchify src/main.js -v -d -o build/webvr-manager.js

lint:
jscs src/*.js
9 changes: 0 additions & 9 deletions js/deps/webvr-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,6 @@ PosePredictor.prototype.getPrediction = function(currentQ, rotationRate, timesta
this.outQ.copy(this.lastQ);
this.outQ.multiply(this.deltaQ);

// DEBUG ONLY: report the abs. difference between actual and predicted
// angles.
/*
var angleDelta = predictAngleDeg - THREE.Math.radToDeg(angleRad);
if (Math.abs(angleDelta) > 5) {
console.log('|Actual-Predicted| = %f deg', angleDelta);
}
*/

// Use the predicted quaternion as the new last one.
//this.lastQ.copy(this.outQ);
this.lastQ.copy(currentQ);
Expand Down

0 comments on commit a6294c6

Please sign in to comment.