ParticleFloat MaxForce { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The MaxForce property of the ParticleAttractor class specifies the maximum force that can be applied to particles being attracted to a target GameObject. This property is of type ParticleFloat, allowing for dynamic adjustments and animations of the force value over time.

Usage

To use the MaxForce property, you need to have an instance of the ParticleAttractor class. You can then set or get the maximum force value to control how strongly particles are attracted to the target.

Example usage:

ParticleAttractor attractor = new ParticleAttractor();
attractor.MaxForce = new ParticleFloat(10.0f); // Set the maximum force to 10.0

Example

ParticleAttractor attractor = new ParticleAttractor();
attractor.MaxForce = new ParticleFloat(10.0f); // Set the maximum force to 10.0