|
@@ -533,6 +533,20 @@ module BABYLON {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Creates a Cylinder Emitter for the particle system (emits from the cylinder to the particle position)
|
|
|
+ * @param radius The radius of the emission cylinder
|
|
|
+ * @param height The height of the emission cylinder
|
|
|
+ * @param radiusRange The range of emission [0-1] 0 Surface only, 1 Entire Radius
|
|
|
+ * @param directionRandomizer How much to randomize the particle direction [0-1]
|
|
|
+ * @returns the emitter
|
|
|
+ */
|
|
|
+ public createCylinderEmitter(radius = 1, height = 1, radiusRange = 1, directionRandomizer = 0): CylinderParticleEmitter {
|
|
|
+ var particleEmitter = new CylinderParticleEmitter(radius, height, radiusRange, directionRandomizer);
|
|
|
+ this.particleEmitterType = particleEmitter;
|
|
|
+ return particleEmitter;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Creates a Cone Emitter for the particle system (emits from the cone to the particle position)
|
|
|
* @param radius The radius of the cone to emit from
|
|
|
* @param angle The base angle of the cone
|