ParticleFloat Randomness { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Randomness property of the ParticleAttractor class is a ParticleFloat that determines the degree of randomness applied to the particle attraction effect. This property allows you to introduce variability in the attraction force, making the particle movement appear more natural and less uniform.

Usage

To use the Randomness property, you can set it to a desired ParticleFloat value that represents the level of randomness you want to apply to the particle attraction. A higher value will result in more variability in the particle paths, while a lower value will make the attraction more consistent.

Example

// Example of setting the Randomness property
ParticleAttractor attractor = new ParticleAttractor();
attractor.Randomness = new ParticleFloat(0.5f); // Set randomness to 0.5

// This will make the particles attracted to the target with some variability in their paths.