ConeEmitterShape class Particles
Emits particles from a disc of radius in the local XZ plane, each headed within a cone of half-angle angle about +Y.
The disc is sampled area-uniform and the directions are sampled uniform over the cone's solid angle, so neither the centre nor the axis is over-weighted.
- Inheritance
-
- Object
- EmitterShape
- ConeEmitterShape
Constructors
- ConeEmitterShape({double angle = 0.5, double radius = 0.0})
-
Creates a cone emitter with base
radiusand cone half-angle(radians).const
Properties
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.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited