Skip to content

Instantly share code, notes, and snippets.

//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;
};