Some more cleaning
This commit is contained in:
parent
86f2094af6
commit
5e0551179e
|
@ -13,7 +13,6 @@ L3D:
|
||||||
--js l3d/src/math/Tools.js \
|
--js l3d/src/math/Tools.js \
|
||||||
--js l3d/src/math/Hermite.js \
|
--js l3d/src/math/Hermite.js \
|
||||||
--js l3d/src/utils/List.js \
|
--js l3d/src/utils/List.js \
|
||||||
--js l3d/src/utils/ListTest.js \
|
|
||||||
--js l3d/src/utils/CameraSelecter.js \
|
--js l3d/src/utils/CameraSelecter.js \
|
||||||
--js l3d/src/utils/Logger.js \
|
--js l3d/src/utils/Logger.js \
|
||||||
--js l3d/src/utils/Objects.js \
|
--js l3d/src/utils/Objects.js \
|
||||||
|
|
|
@ -428,10 +428,6 @@ TutoCamera.prototype.onKeyEvent = function(event, toSet) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event.keyCode) {
|
|
||||||
case 13: if (toSet) this.log(); break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (motionJsonCopy != JSON.stringify(this.motion)) {
|
if (motionJsonCopy != JSON.stringify(this.motion)) {
|
||||||
// Log any change
|
// Log any change
|
||||||
var e = new BD.Event.KeyboardEvent();
|
var e = new BD.Event.KeyboardEvent();
|
||||||
|
|
|
@ -104,7 +104,6 @@ TutorialSteps.prototype.setCameras = function(cameras) {
|
||||||
};
|
};
|
||||||
|
|
||||||
TutorialSteps.prototype.nextStep = function() {
|
TutorialSteps.prototype.nextStep = function() {
|
||||||
console.log(this.step);
|
|
||||||
if (this.step < this.instructions.length) {
|
if (this.step < this.instructions.length) {
|
||||||
this.alert(this.instructions[this.step].text, this.instructions[this.step].justclick);
|
this.alert(this.instructions[this.step].text, this.instructions[this.step].justclick);
|
||||||
var callback = function() {self.coinNumber++; self.nextStep();};
|
var callback = function() {self.coinNumber++; self.nextStep();};
|
||||||
|
|
|
@ -155,11 +155,11 @@ ReverseCamera.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 (i = 0; i < faces.length; i++) {
|
// for (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;
|
||||||
|
|
Loading…
Reference in New Issue