SphereEmitter class final

Outwards in every direction. Explosions, and anything that bursts.

Inheritance

Constructors

SphereEmitter({Range speed = const Range(2.0, 6.0), Range radius = const Range.exact(0.0)})
A burst from a point at 2 to 6 metres per second unless told otherwise.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
radius → Range
How far from the origin a particle starts, so a burst begins as a shell rather than as a point.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speed → Range
How fast a particle leaves, in metres per second, sampled per particle.
final

Methods

emit(ParticleBirth birth) → void
Places ParticleBirth.particle for a burst at ParticleBirth.origin, in scene space, pointing along ParticleBirth.direction.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
randomDirection(Vector3 out, Random random) → void
A unit vector, uniformly over the sphere.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited