initRadius method

  1. @protected
void initRadius(
  1. Particle p
)

Initializes a new radius for the provided Particle.

Implementation

@protected
void initRadius(Particle p) {
  final deltaRadius = (options.spawnMaxRadius - options.spawnMinRadius);
  p.radius = random.nextDouble() * deltaRadius + options.spawnMinRadius;
}