|
@@ -48680,6 +48680,15 @@ var BABYLON;
|
|
|
var randZ = BABYLON.Scalar.RandomRange(this.minEmitBox.z, this.maxEmitBox.z);
|
|
|
BABYLON.Vector3.TransformCoordinatesFromFloatsToRef(randX, randY, randZ, worldMatrix, positionToUpdate);
|
|
|
};
|
|
|
+ /**
|
|
|
+ * Clones the current emitter and returns a copy of it
|
|
|
+ * @returns the new emitter
|
|
|
+ */
|
|
|
+ BoxParticleEmitter.prototype.clone = function () {
|
|
|
+ var newOne = new BoxParticleEmitter(this._particleSystem);
|
|
|
+ BABYLON.Tools.DeepCopy(this, newOne);
|
|
|
+ return newOne;
|
|
|
+ };
|
|
|
return BoxParticleEmitter;
|
|
|
}());
|
|
|
BABYLON.BoxParticleEmitter = BoxParticleEmitter;
|
|
@@ -48779,6 +48788,15 @@ var BABYLON;
|
|
|
var randY = h;
|
|
|
BABYLON.Vector3.TransformCoordinatesFromFloatsToRef(randX, randY, randZ, worldMatrix, positionToUpdate);
|
|
|
};
|
|
|
+ /**
|
|
|
+ * Clones the current emitter and returns a copy of it
|
|
|
+ * @returns the new emitter
|
|
|
+ */
|
|
|
+ ConeParticleEmitter.prototype.clone = function () {
|
|
|
+ var newOne = new ConeParticleEmitter(this.radius, this.angle, this.directionRandomizer);
|
|
|
+ BABYLON.Tools.DeepCopy(this, newOne);
|
|
|
+ return newOne;
|
|
|
+ };
|
|
|
return ConeParticleEmitter;
|
|
|
}());
|
|
|
BABYLON.ConeParticleEmitter = ConeParticleEmitter;
|
|
@@ -48844,6 +48862,15 @@ var BABYLON;
|
|
|
var randZ = this.radius * Math.sin(phi) * Math.sin(theta);
|
|
|
BABYLON.Vector3.TransformCoordinatesFromFloatsToRef(randX, randY, randZ, worldMatrix, positionToUpdate);
|
|
|
};
|
|
|
+ /**
|
|
|
+ * Clones the current emitter and returns a copy of it
|
|
|
+ * @returns the new emitter
|
|
|
+ */
|
|
|
+ SphereParticleEmitter.prototype.clone = function () {
|
|
|
+ var newOne = new SphereParticleEmitter(this.radius, this.directionRandomizer);
|
|
|
+ BABYLON.Tools.DeepCopy(this, newOne);
|
|
|
+ return newOne;
|
|
|
+ };
|
|
|
return SphereParticleEmitter;
|
|
|
}());
|
|
|
BABYLON.SphereParticleEmitter = SphereParticleEmitter;
|
|
@@ -48886,6 +48913,15 @@ var BABYLON;
|
|
|
var randZ = BABYLON.Scalar.RandomRange(this.direction1.z, this.direction2.z);
|
|
|
BABYLON.Vector3.TransformNormalFromFloatsToRef(randX * emitPower, randY * emitPower, randZ * emitPower, worldMatrix, directionToUpdate);
|
|
|
};
|
|
|
+ /**
|
|
|
+ * Clones the current emitter and returns a copy of it
|
|
|
+ * @returns the new emitter
|
|
|
+ */
|
|
|
+ SphereDirectedParticleEmitter.prototype.clone = function () {
|
|
|
+ var newOne = new SphereDirectedParticleEmitter(this.radius, this.direction1, this.direction2);
|
|
|
+ BABYLON.Tools.DeepCopy(this, newOne);
|
|
|
+ return newOne;
|
|
|
+ };
|
|
|
return SphereDirectedParticleEmitter;
|
|
|
}(SphereParticleEmitter));
|
|
|
BABYLON.SphereDirectedParticleEmitter = SphereDirectedParticleEmitter;
|
|
@@ -48895,7 +48931,7 @@ var BABYLON;
|
|
|
|
|
|
|
|
|
|
|
|
-//# sourceMappingURL=babylon.iParticleEmitterType.js.map
|
|
|
+//# sourceMappingURL=babylon.IParticleEmitterType.js.map
|
|
|
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|