SizeOverLifeModule class Particles
Scales each particle's rendered size by a FloatDistribution sampled over
its normalized age, relative to the size set at spawn (size = baseSize * scale(age / lifetime)).
- Inheritance
-
- Object
- ParticleModule
- SizeOverLifeModule
Constructors
- SizeOverLifeModule(FloatDistribution scale)
-
Creates a size-over-life force driven by
scale.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → FloatDistribution
-
The multiplier sampled over normalized age.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
spawn(
ParticleStorage storage, int index) → void -
Initializes the freshly spawned particle at
index.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
update(
ParticleStorage storage, double dt) → void -
Advances every live particle by
dtseconds.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited