ParticleInfluence

ParticleInfluence

A Particle influence modifies particles in some way over time.

Constructor

new ParticleInfluence(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>
Properties
Name Type Attributes Default Description
prepare function <optional>

prepare(Entity particleEntity, ParticleEmitter emitter).

apply function <optional>

apply(number tpf, Particle particle, number particleIndex).

enabled boolean <optional>
true

Members

apply :function

Function for applying this particle influence

enabled :boolean

Specifies whether this influence should be applied to particles. Prepare is called regardless

prepare :function

Function for preparing to apply this particle influence. Useful for expensive operations that should only need computing once per frame.