One bound (Unity's lower curve).
The other bound (Unity's upper curve).
A copy with copies of both curves.
The particle's number at t; rolls its mix first if RandomBetweenCurves.startGen
never has. A particle that was not rolled for this instance (one alive when the setting was
replaced) takes the midway curve rather than a missing mix.
Optionalt: numberHas both curves sample their tables, as a single curve does; see PiecewiseBezier.refreshTable.
Rolls the particle's mix again, in the slot RandomBetweenCurves.startGen claimed; a particle that was not rolled for this instance keeps the midway curve.
Rolls the particle's mix between the curves into a new slot of memory.
The JSON form, {type: 'RandomBetweenCurves', curve1, curve2}.
StaticfromReads RandomBetweenCurves.toJSON output. A bound that is missing or not a curve warns (throws when strict) and reads as a flat 0 curve, so one bad value does not cost the effect.
A number over time between two curves, at a mix rolled once per particle and kept for its life (Unity's Random Between Two Curves): each particle follows its own curve, the same fraction of the way from RandomBetweenCurves.curve1 to RandomBetweenCurves.curve2 at every
t. Where it drives a start value,tis the system's cycle, as for any curve there.Where a system-level setting takes it (emission over time or distance, a burst's count, a shape's speed, Noise's scroll speed), the mix is rolled once per play rather than at every emission step, as a random range is there.
Like every random generator, an instance holds the memory slot of its mix: give each setting its own instance, and RandomBetweenCurves.clone one to reuse it.