FloatDistribution class sealed Particles
A scalar value generator sampled per particle, the single value type behind every scalar particle parameter.
sample takes the particle's normalized age (age / lifetime, in [0, 1])
and a per-particle random in [0, 1) (stored at birth so sampling is
deterministic and repeatable). The variants cover the four common authoring
modes: a constant, a random range, a curve over life, and a per-particle
random blend between two curves.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sample(
double normalizedAge, double random01) → double -
Returns the value for a particle at
normalizedAgewith per-particle randomrandom01. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited