samplePosition method
Writes a spawn offset, relative to the emitter, into out.
Implementation
@override
void samplePosition(Random random, Vector2 out) {
out.setValues(
(random.nextDouble() - 0.5) * width,
(random.nextDouble() - 0.5) * height,
);
}