From dc90052a91971d37e835adf139ce07efe1012dd7 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Tue, 2 Jun 2015 14:44:02 +0200 Subject: [PATCH] Moved one red coin --- js/prototype/ArrowCamera.js | 10 +++++----- js/prototype/Coin.js | 1 + js/prototype/TutorialSteps.js | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/js/prototype/ArrowCamera.js b/js/prototype/ArrowCamera.js index ab57f28..6621b6a 100644 --- a/js/prototype/ArrowCamera.js +++ b/js/prototype/ArrowCamera.js @@ -237,11 +237,11 @@ ArrowCamera.prototype.regenerateArrow = function(mainCamera) { var len = vertices.length; faces.push(new THREE.Face3(len-4,len-3,len-2), new THREE.Face3(len-4,len-2,len-1)); - var max = 0; - for (var i = 0; i < faces.length; i++) { - max = Math.max(max, faces[i].a, faces[i].b, faces[i].c); - } - console.log(max + '/' + len); + // var max = 0; + // for (var i = 0; i < faces.length; i++) { + // max = Math.max(max, faces[i].a, faces[i].b, faces[i].c); + // } + // console.log(max + '/' + len); this.arrow.geometry.faces = faces; diff --git a/js/prototype/Coin.js b/js/prototype/Coin.js index b03d76d..6202127 100644 --- a/js/prototype/Coin.js +++ b/js/prototype/Coin.js @@ -34,6 +34,7 @@ Coin.prototype.addToScene = function(scene) { Coin.prototype.update = function() { var self = this; + console.log(this.ready, this.rotating); if (this.ready && this.rotating) this.mesh.rotation.y += 0.1 } diff --git a/js/prototype/TutorialSteps.js b/js/prototype/TutorialSteps.js index d4edc6a..bb770ab 100644 --- a/js/prototype/TutorialSteps.js +++ b/js/prototype/TutorialSteps.js @@ -107,7 +107,7 @@ TutorialSteps.prototype.nextStep = function() { coins[coins.length-1].addToScene(this.scene); break; case 4: - coins.push(new Coin(-0.670782299402527,1.847042640633274,1.562644363633795, callback)); + coins.push(new Coin(1.4074130964382279,0.6458319586843252,-6.75244526999632, callback)); coins[coins.length-1].addToScene(this.scene); coins.push(new Coin(-4.2701659473968965,0.6745750513698942,-0.484545726832743, callback)); coins[coins.length-1].addToScene(this.scene);