Browse Source

radius range constructor support

Andrew Butt 7 years ago
parent
commit
3ac49cbf1e
1 changed files with 3 additions and 8 deletions
  1. 3 8
      src/Particles/EmitterTypes/babylon.sphereParticleEmitter.ts

+ 3 - 8
src/Particles/EmitterTypes/babylon.sphereParticleEmitter.ts

@@ -4,13 +4,7 @@ module BABYLON {
      * It emits the particles alongside the sphere radius. The emission direction might be randomized.
      * It emits the particles alongside the sphere radius. The emission direction might be randomized.
      */
      */
     export class SphereParticleEmitter implements IParticleEmitterType {
     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
          * Creates a new instance SphereParticleEmitter
          * @param radius the radius of the emission sphere (1 by default)
          * @param radius the radius of the emission sphere (1 by default)
          * @param directionRandomizer defines how much to randomize the particle direction [0-1]
          * @param directionRandomizer defines how much to randomize the particle direction [0-1]
@@ -20,6 +14,7 @@ module BABYLON {
              * The radius of the emission sphere.
              * The radius of the emission sphere.
              */
              */
             public radius = 1, 
             public radius = 1, 
+            public radiusRange = 1,
             /**
             /**
              * How much to randomize the particle direction [0-1].
              * How much to randomize the particle direction [0-1].
              */
              */
@@ -224,4 +219,4 @@ module BABYLON {
             this.direction2.copyFrom(serializationObject.direction2);
             this.direction2.copyFrom(serializationObject.direction2);
         }           
         }           
     }
     }
-}
+}