diff --git a/js/Camera.js b/js/Camera.js index b129a5d..d1bf1ca 100644 --- a/js/Camera.js +++ b/js/Camera.js @@ -13,6 +13,9 @@ Camera.prototype = Object.create(THREE.PerspectiveCamera.prototype); // Update function Camera.prototype.update = function(time) { + if (time === undefined) { + time = 20; + } this.theta += 0.01 * time / 20; this.position.x = Camera.DISTANCE_X*Math.cos(this.theta); this.position.y = Camera.DISTANCE_X*Math.sin(this.theta);