CircleEmitterShape class
Spawns particles uniformly inside a circle, or on its edge when edgeOnly is true.
- Inheritance
-
- Object
- EmitterShape
- CircleEmitterShape
Constructors
- CircleEmitterShape(double radius, {bool edgeOnly = false})
-
Spawns particles inside (or on the edge of) a circle with the given
radius.const
Properties
- edgeOnly → bool
-
When true, particles spawn on the circle's edge instead of inside it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- radius → double
-
The radius of the spawn circle, in local units.
final
- 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
-
samplePosition(
Random random, Vector2 out) → void -
Writes a spawn offset, relative to the emitter, into
out.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited