ConeEmitter class final
A cone around a direction. Muzzle flashes, sparks off a wall, blood.
- Inheritance
-
- Object
- ParticleEmitter
- ConeEmitter
Constructors
- ConeEmitter({Range speed = const Range(3.0, 8.0), double halfAngle = 25.0 * math.pi / 180.0})
-
A cone 25 degrees either side of the burst's direction, at 3 to 8
metres per second, unless told otherwise.
const
Properties
- halfAngle → double
-
The angle between the axis and the cone's edge, in radians.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → Range
-
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