Skip to content

Instantly share code, notes, and snippets.

@mrdoob
Created May 10, 2010 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mrdoob/396139 to your computer and use it in GitHub Desktop.
Save mrdoob/396139 to your computer and use it in GitHub Desktop.
THREE.Particle = function (material) {
this.constructor.call(this);
this.size = 1,
this.material = material;
}
THREE.Particle.prototype = new THREE.Object3D();
//
var particle = new THREE.Particle();
alert(particle instanceof THREE.Object3D); // true
alert(particle instanceof THREE.Particle); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment