BoxEmitterShape class Particles

Emits particles uniformly inside an axis-aligned box, each headed along a shared direction.

Inheritance

Constructors

BoxEmitterShape({Vector3? halfExtents, Vector3? direction})
Creates a box emitter spanning [-halfExtents, halfExtents], heading along direction (default +Y).

Properties

direction → Vector3
The unit emission direction shared by every particle.
final
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 index into storage.
override
toString() String
A string representation of this object.
inherited

Operators

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