|
@@ -4,22 +4,21 @@ module BABYLON {
|
|
|
* It emits the particles alongside the sphere radius. The emission direction might be randomized.
|
|
|
*/
|
|
|
export class SphereParticleEmitter implements IParticleEmitterType {
|
|
|
-
|
|
|
- /**
|
|
|
- * Gets or sets a value indicating where on the radius the start position should be picked (1 = everywhere, 0 = only surface)
|
|
|
- */
|
|
|
- public radiusRange = 1;
|
|
|
-
|
|
|
- /**
|
|
|
+ /**
|
|
|
* Creates a new instance SphereParticleEmitter
|
|
|
* @param radius the radius of the emission sphere (1 by default)
|
|
|
+ * @param radiusRange the range of the emission sphere [0-1] 0 Surface only, 1 Entire Radius (1 by default)
|
|
|
* @param directionRandomizer defines how much to randomize the particle direction [0-1]
|
|
|
*/
|
|
|
constructor(
|
|
|
/**
|
|
|
* The radius of the emission sphere.
|
|
|
*/
|
|
|
- public radius = 1,
|
|
|
+ public radius = 1,
|
|
|
+ /**
|
|
|
+ * The range of emission [0-1] 0 Surface only, 1 Entire Radius.
|
|
|
+ */
|
|
|
+ public radiusRange = 1,
|
|
|
/**
|
|
|
* How much to randomize the particle direction [0-1].
|
|
|
*/
|
|
@@ -224,4 +223,4 @@ module BABYLON {
|
|
|
this.direction2.copyFrom(serializationObject.direction2);
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|