EmitterShape class abstract Particles
Decides where a freshly spawned particle starts and which way it initially heads.
sample writes the spawn position into the storage's pos* columns and a
unit emission direction into the vel* columns at index; the owning
system scales that direction by the start speed to produce the launch
velocity. Positions and directions are in the emitter's local space.
Shapes draw their randomness from ParticleStorage.randomFor with salts in
the 20+ range, kept disjoint from the salts the system uses for its other
spawn properties so values do not correlate.
Constructors
- EmitterShape()
-
Creates an emitter shape.
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sample(
ParticleStorage storage, int index) → void -
Writes the spawn position and unit emission direction for particle
indexintostorage. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited