Hide camera when clicking on it

This commit is contained in:
Thomas FORGIONE
2015-04-13 09:48:50 +02:00
parent b5d2822d00
commit f4d28a6ee6
3 changed files with 18 additions and 2 deletions

View File

@@ -58,3 +58,7 @@ CameraContainer.prototype.nextCamera = function() {
this.current_camera%=this.cameras.length;
}
}
CameraContainer.prototype.map = function(callback) {
this.cameras.map(callback);
}

View File

@@ -105,3 +105,8 @@ FixedCamera.prototype.addToScene = function(scene) {
scene.add(this.mesh);
scene.add(this.line);
}
FixedCamera.prototype.traverse = function(callback) {
callback(this.mesh);
callback(this.line);
}