diff --git a/src/core/SPE.Emitter.js b/src/core/SPE.Emitter.js index c9eba34..a9b8585 100644 --- a/src/core/SPE.Emitter.js +++ b/src/core/SPE.Emitter.js @@ -176,7 +176,7 @@ SPE.Emitter = function( options ) { console.warn( 'onParticleSpawn has been removed. Please set properties directly to alter values at runtime.' ); } - this.uuid = THREE.Math.generateUUID(); + this.uuid = THREE.MathUtils.generateUUID(); this.type = utils.ensureTypedArg( options.type, types.NUMBER, SPE.distributions.BOX ); diff --git a/src/core/SPE.Group.js b/src/core/SPE.Group.js index 1e1d585..440f586 100644 --- a/src/core/SPE.Group.js +++ b/src/core/SPE.Group.js @@ -68,7 +68,7 @@ SPE.Group = function( options ) { options.texture = utils.ensureTypedArg( options.texture, types.OBJECT, {} ); // Assign a UUID to this instance - this.uuid = THREE.Math.generateUUID(); + this.uuid = THREE.MathUtils.generateUUID(); // If no `deltaTime` value is passed to the `SPE.Group.tick` function, // the value of this property will be used to advance the simulation.