Moved one red coin

This commit is contained in:
Thomas FORGIONE 2015-06-02 14:44:02 +02:00
parent 34def0ce08
commit dc90052a91
3 changed files with 7 additions and 6 deletions

View File

@ -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;

View File

@ -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
}

View File

@ -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);