This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//I think that the main problem with the code is that | |
//Particle inherits from Object3D, but you couldn't reuse that same code to | |
//make another object inherit from Particle, since the original Particle constructor | |
//is overridden by Object3Ds. So my approach would be: | |
THREE.Particle = function (material) { | |
THREE.Object3D.call(this); | |
this.size = 1; | |
this.material = material; | |
}; |