Created
May 10, 2010 14:55
-
-
Save mrdoob/396139 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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