Skip to main content

Interface: ParticleEmitterOptions

Defined in: particles/components/particle-emitter.ts:26

Interface for particle emitter options.

Properties

emitDurationSeconds

emitDurationSeconds: number

Defined in: particles/components/particle-emitter.ts:67

The duration for which the emitter will emit particles.

Default

0

lifetimeScaleReduction

lifetimeScaleReduction: number

Defined in: particles/components/particle-emitter.ts:62

The factor by which the particle scale reduces over its lifetime. The particle scale at the end of its lifetime will be scale * lifetimeScaleReduction

Default

0

lifetimeSecondsRange

lifetimeSecondsRange: MinMaxRange

Defined in: particles/components/particle-emitter.ts:56

The range for the lifetime of particles in seconds.

Default

{ min: 1, max: 3 }

numParticlesRange

numParticlesRange: MinMaxRange

Defined in: particles/components/particle-emitter.ts:31

The range for the number of particles emitted.

Default

{ min: 5, max: 10 }

rotationRange

rotationRange: MinMaxRange

Defined in: particles/components/particle-emitter.ts:46

The range for the initial rotation of particles, in degrees.

Default

{ min: 0, max: 360 }

rotationSpeedRange

rotationSpeedRange: MinMaxRange

Defined in: particles/components/particle-emitter.ts:51

The range for the rotational speed of particles.

Default

{ min: 0, max: 0 }

scaleRange

scaleRange: MinMaxRange

Defined in: particles/components/particle-emitter.ts:41

The range for the scale of particles.

Default

{ min: 1, max: 1 }

spawnPosition

spawnPosition: ParticleSpawnPositionFunction

Defined in: particles/components/particle-emitter.ts:72

The function to determine the X and Y spawn positions of the emitted particles.

Default

() => {x: 0, y: 0 },

speedRange

speedRange: MinMaxRange

Defined in: particles/components/particle-emitter.ts:36

The range for the speed of particles.

Default

{ min: 10, max: 20 }