Hide camera when clicking on it
This commit is contained in:
@@ -58,3 +58,7 @@ CameraContainer.prototype.nextCamera = function() {
|
||||
this.current_camera%=this.cameras.length;
|
||||
}
|
||||
}
|
||||
|
||||
CameraContainer.prototype.map = function(callback) {
|
||||
this.cameras.map(callback);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user