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

Constructors

ConeEmitterShape({double angle = 0.5, double radius = 0.0})
Creates a cone emitter with base radius and cone half-angle (radians).
const

Properties

angle double
The cone half-angle in radians (the spread away from +Y).
final
hashCode int
The hash code for this object.
no setterinherited
radius double
The base disc radius.
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
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