Moved one red coin
This commit is contained in:
parent
34def0ce08
commit
dc90052a91
|
@ -237,11 +237,11 @@ ArrowCamera.prototype.regenerateArrow = function(mainCamera) {
|
||||||
var len = vertices.length;
|
var len = vertices.length;
|
||||||
faces.push(new THREE.Face3(len-4,len-3,len-2), new THREE.Face3(len-4,len-2,len-1));
|
faces.push(new THREE.Face3(len-4,len-3,len-2), new THREE.Face3(len-4,len-2,len-1));
|
||||||
|
|
||||||
var max = 0;
|
// var max = 0;
|
||||||
for (var i = 0; i < faces.length; i++) {
|
// for (var i = 0; i < faces.length; i++) {
|
||||||
max = Math.max(max, faces[i].a, faces[i].b, faces[i].c);
|
// max = Math.max(max, faces[i].a, faces[i].b, faces[i].c);
|
||||||
}
|
// }
|
||||||
console.log(max + '/' + len);
|
// console.log(max + '/' + len);
|
||||||
|
|
||||||
|
|
||||||
this.arrow.geometry.faces = faces;
|
this.arrow.geometry.faces = faces;
|
||||||
|
|
|
@ -34,6 +34,7 @@ Coin.prototype.addToScene = function(scene) {
|
||||||
|
|
||||||
Coin.prototype.update = function() {
|
Coin.prototype.update = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
console.log(this.ready, this.rotating);
|
||||||
if (this.ready && this.rotating)
|
if (this.ready && this.rotating)
|
||||||
this.mesh.rotation.y += 0.1
|
this.mesh.rotation.y += 0.1
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,7 +107,7 @@ TutorialSteps.prototype.nextStep = function() {
|
||||||
coins[coins.length-1].addToScene(this.scene);
|
coins[coins.length-1].addToScene(this.scene);
|
||||||
break;
|
break;
|
||||||
case 4:
|
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[coins.length-1].addToScene(this.scene);
|
||||||
coins.push(new Coin(-4.2701659473968965,0.6745750513698942,-0.484545726832743, callback));
|
coins.push(new Coin(-4.2701659473968965,0.6745750513698942,-0.484545726832743, callback));
|
||||||
coins[coins.length-1].addToScene(this.scene);
|
coins[coins.length-1].addToScene(this.scene);
|
||||||
|
|
Loading…
Reference in New Issue